* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f5f7fb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.login-card h2 {
    text-align: center;
    font-size: 30px;
    color: #1f2937;
    margin-bottom: 10px;
}

.login-card p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid #d9dde6;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 15px;
    transition: .25s;
}

.form-group input:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
}

.toggle-password:hover {
    color: #4f46e5;
}

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #4f46e5;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.login-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.login-links a {
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
}

.login-footer a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.success-message {
    background: #e8f8ef;
    color: #166534;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #fdeaea;
    color: #b91c1c;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

@media(max-width:576px) {
    .login-card {
        padding: 25px;
    }
    .login-card h2 {
        font-size: 26px;
    }
}


/* ==========================================
   LOGIN LOGO
========================================== */

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(79, 70, 229, .25);
}

.login-logo i {
    font-size: 38px;
    color: #fff;
}


/* ==========================================
   INPUT PLACEHOLDER
========================================== */

.form-group input::placeholder {
    color: #9ca3af;
}


/* ==========================================
   BUTTON ICON
========================================== */

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn i {
    font-size: 18px;
}


/* ==========================================
   INPUT HOVER
========================================== */

.form-group input:hover {
    border-color: #b8bfcf;
}


/* ==========================================
   CARD ANIMATION
========================================== */

.login-card {
    animation: loginFade .35s ease;
}

@keyframes loginFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   LINKS
========================================== */

.login-links a,
.login-footer a {
    transition: .2s;
}

.login-links a:hover,
.login-footer a:hover {
    color: #4338ca;
}


/* ==========================================
   SUCCESS / ERROR
========================================== */

.success-message,
.error-message {
    font-size: 14px;
    font-weight: 500;
}


/* ==========================================
   PASSWORD STRENGTH
========================================== */

.password-strength {
    margin-top: 8px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: .3s;
    border-radius: 20px;
}

.strength-text {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}


/* ==========================================
   BUTTON LOADING
========================================== */

.login-btn.loading {
    pointer-events: none;
    opacity: .75;
}

.login-btn.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-message,
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}


/* ==========================================
   PASSWORD STRENGTH
========================================== */

.password-strength {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength-bar {
    width: 0;
    height: 100%;
    transition: .3s;
}

.strength-text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}


/* ==========================================
   LOADING BUTTON
========================================== */

.login-btn.loading {
    pointer-events: none;
    opacity: .8;
}

.login-btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}