* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.form-container {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-container {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

h2 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

h3 {
    color: #666;
    margin-top: 15px;
    margin-bottom: 10px;
}

.subtitle {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 30px;
}

.input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.9em;
}

.btn-link:hover {
    color: #5568d3;
}

.text-center {
    text-align: center;
    margin-top: 20px;
    color: #999;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.profile-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.profile-section ul {
    list-style: none;
    margin-left: 0;
}

.profile-section li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.success {
    color: #28a745;
    font-weight: 600;
}

.warning {
    color: #ffc107;
    font-weight: 600;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content img {
    display: block;
    margin: 20px auto;
    border: 2px solid #f0f0f0;
    border-radius: 4px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
    }

    .form-container,
    .profile-container {
        padding: 20px;
        border-radius: 12px;
    }

    .admin-container {
        width: 95vw !important;
        max-width: none;
        min-width: auto;
        padding: 15px;
    }

    h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    h2 {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 1em;
    }

    .header {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        font-size: 16px;
        padding: 14px;
    }

    .input {
        font-size: 16px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .modal-content {
        padding: 20px;
        max-width: 90vw;
        border-radius: 12px;
    }

    .subtitle {
        margin-bottom: 20px;
        font-size: 0.95em;
    }

    .text-center {
        margin-top: 15px;
    }
}
