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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F6FF 100%);
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(90deg, #6C4AB6 0%, #8B5FD1 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(108, 74, 182, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(108, 74, 182, 0.12);
    border: 1px solid #E0E0E0;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6C4AB6 0%, #B89BE0 100%);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6C4AB6 0%, #B89BE0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666666;
    font-weight: 400;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #333333;
    font-size: 0.9rem;
}

.form-input {
    padding: 1rem 1.2rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1rem;
    color: #333333;
    transition: all 0.3s ease;
    background: #FAFAFA;
    outline: none;
}

.form-input:focus {
    border-color: #6C4AB6;
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 74, 182, 0.1);
}

.form-input.error {
    border-color: #FF6B6B;
    background: #FFF5F5;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.error-text {
    font-size: 0.85rem;
    color: #FF6B6B;
    display: none;
    margin-top: -0.25rem;
}

.error-text.show {
    display: block;
}

.helper-text {
    font-size: 0.85rem;
    color: #999999;
    margin-top: -0.25rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666666;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6C4AB6;
}

.link-text {
    color: #6C4AB6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.link-text:hover {
    color: #8B5FD1;
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    padding: 1.2rem;
    background: linear-gradient(135deg, #6C4AB6 0%, #8B5FD1 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5A3E9B 0%, #7A52C4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 74, 182, 0.3);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.button-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.submit-button.loading .button-text {
    opacity: 0;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.submit-button.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Messages */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
    margin-top: 0.5rem;
}

.error-message {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
    border: 1px solid #FFB3B3;
    color: #FF6B6B;
}

.success-message {
    background: linear-gradient(135deg, #F0FFF4 0%, #E6FFED 100%);
    border: 1px solid #B3E6C0;
    color: #38A169;
}

.error-message.show,
.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E0E0E0;
    color: #666666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #333333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    color: #B89BE0;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #B89BE0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
}