* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow Effects */
.account-glow-1 {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(143, 110, 255, 0.3), transparent);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: floatGlow 8s ease-in-out infinite;
}

.account-glow-2 {
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(179, 94, 235, 0.3), transparent);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.account-main {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Main Card */
.account-card {
    background: rgba(18, 15, 40, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
}

    .account-card:hover {
        border-color: rgba(143, 110, 255, 0.3);
        box-shadow: 0 35px 70px rgba(143, 110, 255, 0.2);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.account-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .account-header h1 {
        font-size: 2rem;
        font-weight: 700;
        background: linear-gradient(135deg, #ffffff, #e0c3ff, #b1d0ff, #8f6eff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 0.5rem;
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }

    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

.account-header p {
    color: #b9a5ff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #d4c9ff;
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

        .form-group label i {
            margin-right: 0.5rem;
            color: #8f6eff;
            font-size: 0.8rem;
        }

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8f6eff;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    background: rgba(10, 8, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #8f6eff;
        box-shadow: 0 0 0 3px rgba(143, 110, 255, 0.1);
        background: rgba(10, 8, 25, 0.9);
    }

        .form-control:focus + .input-icon {
            color: #b35eeb;
            transform: translateY(-50%) scale(1.1);
        }

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8f6eff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 1;
}

    .password-toggle:hover {
        color: #b35eeb;
        transform: translateY(-50%) scale(1.1);
    }

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .remember-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #8f6eff;
        transition: all 0.2s ease;
    }

        .remember-check input[type="checkbox"]:hover {
            transform: scale(1.1);
        }

    .remember-check label {
        color: #b9a5ff;
        font-size: 0.85rem;
        cursor: pointer;
        transition: color 0.3s;
    }

        .remember-check label:hover {
            color: #8f6eff;
        }

.forgot-link {
    color: #8f6eff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, #8f6eff, #b35eeb);
        transition: width 0.3s ease;
    }

    .forgot-link:hover {
        color: #b35eeb;
    }

        .forgot-link:hover::after {
            width: 100%;
        }

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(145deg, #8f6eff, #b35eeb);
    border: none;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .btn-submit::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-submit:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(140, 70, 255, 0.5);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    .btn-submit i {
        transition: transform 0.3s ease;
    }

    .btn-submit:hover i {
        transform: translateX(5px);
    }

/* Switch Prompt */
.switch-prompt {
    text-align: center;
    margin-top: 1.5rem;
    color: #b9a5ff;
    font-size: 0.85rem;
}

    .switch-prompt a {
        color: #8f6eff;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }

        .switch-prompt a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: linear-gradient(90deg, #8f6eff, #b35eeb);
            transition: width 0.3s ease;
        }

        .switch-prompt a:hover {
            color: #b35eeb;
        }

            .switch-prompt a:hover::after {
                width: 100%;
            }

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(4px);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.alert i {
    font-size: 1.1rem;
}

/* Validation Summary */
.validation-summary-errors {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 1rem;
    padding: 0.8rem;
    margin-bottom: 1rem;
    color: #dc3545;
    font-size: 0.85rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Field Validation Styles */
.field-validation-error {
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-validation-error {
    border-color: #dc3545 !important;
}

    .input-validation-error:focus {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
    }

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .btn-submit.loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .account-main {
        padding: 1rem;
    }

    .account-card {
        padding: 1.5rem;
    }

    .account-header h1 {
        font-size: 1.5rem;
    }

    .account-header p {
        font-size: 0.8rem;
    }

    .form-control {
        padding: 0.8rem 1rem 0.8rem 2.2rem;
        font-size: 0.85rem;
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .alert {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
    .account-main {
        padding: 1.5rem;
    }

    .account-card {
        padding: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(18, 18, 35, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8f6eff, #b35eeb);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #a07eff, #c47aff);
    }

/* Selection Color */
::selection {
    background: rgba(143, 110, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(143, 110, 255, 0.3);
    color: white;
}
