.auth-layout {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(202, 198, 198, 0.81), rgba(177, 173, 173, 0.77)),url('../../images/fondo_graduados.jpeg');
    background-size: cover;
    background-position: center;
    flex-direction: column;
    padding: 10px;
}

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

.login-wrapper {
    /* padding: 40px 0px; */
    width: 100%;
}

.login-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow:var(--shadow-lg);
}

.login-card-header {
    background: var(--primary);
    padding: 10px;
    text-align: center;
}

.login-card-header h1 {
    margin: 0;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.login-card-body {
    padding: 28px 32px 24px;
}

.login-label {
    display: block;
    margin-bottom: 10px;
    color: var(--black);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.login-label span {
    color: var(--red);
}

.login-input {
    height: 40px;
    border: 1.5px solid rgb(222, 226, 230);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    width: 100%;
    outline: none;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    transition: 0.2s;
}

.login-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(0,85,165,0.10);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #7d8590;
    font-size: 20px;
    cursor: pointer;
}

.login-reset {
    margin-top: 16px;
    margin-bottom: 30px;
    text-align: right;
}

.login-reset a {
    color: #0055a5;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.login-reset a:hover {
    text-decoration: underline;
}


.btn-login {
    width: 100%;
    border: none;
    font-size: var(--font-size-md);
    font-weight: 700;
}


.login-help {
    margin-top: 34px;
    text-align: center;
}

.login-help a {
    color: #0055a5;
    font-size: var(--font-size-md);
    font-weight: 600;
}

.login-demo {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #7b8190;
    font-size: 14px;
}

.login-demo strong {
    color: #0055a5;
}

/* RESET PASS */
.reset-card {
    max-width: 100%;
    margin: 0 auto;
}

.reset-card .login-card-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 32px;
}

.reset-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.reset-header-content h1{
    width: 227px;
    line-height: 1.2;
    color: var(--white);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.reset-header-content span {
    color: rgba(255,255,255,0.82);
    font-size: var(--font-size-sm);
}

.reset-ribbon {
    position: relative;
    top: -10px;
    right: -55px;
    width: 120px;
    height: 23px;
    background: #f4b321;
    color: var(--white);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    transform: rotate(38deg);
}

.reset-body {
    padding: 5px 30px 0px 24px;
}

.reset-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0055a5;
    font-size: 32px;
}

.reset-title {
    text-align: center;
    margin-bottom: 12px;
}

.reset-title h2 {
    margin: 0;
    color: black;
    font-size: var(--font-size-xl);
}

.reset-title p {
    margin: 14px auto 0;
    max-width: 580px;
    color: var(hover-primary);
    font-size: var(--font-size-md);
    line-height: 1.7;
}

.reset-form {
    margin-top: 25px;
    
}

.reset-actions {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-reset-back {
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    width: 100%;
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 700;
    height: 45px;
}

.btn-reset-back:hover {
    background: #f9fafb;
    text-decoration: none;
}

.btn-reset-submit {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s;
}

.btn-reset-submit:hover {
    opacity: .95;
}

.auth-layout #id_email {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid #d7dce3 !important;
    border-radius: 12px !important;
    font-size: var(--font-size-md) !important;
    background: #fff !important;
    display: block !important;
    float: none !important;
    text-align: left !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.auth-layout #id_email:focus {
    border-color: #0055a5 !important;
    box-shadow: 0 0 0 4px rgba(0, 85, 165, 0.10) !important;
    outline: none !important;
}

/* ======================================
   RESET PASSWORD SUCCESS
====================================== */

.reset-success-card {
    overflow: hidden;
}

.success-header {
    background: #4f8458;
    padding: 10px 28px;
}

.success-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-header-content i {
    color: white;
    font-size: 22px;
}

.success-header-content h1 {
    margin: 0;
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.reset-success-body {
    padding: 10px 16px 28px;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 7px;
    border-radius: 50%;
    background: rgba(79, 132, 88, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    color: #7cad16;
    font-size: 34px;
}

.success-content h2 {
    margin-bottom: 20px;
    color: #071437;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.success-content p {
    margin-bottom: 18px;
    color: black;
    font-size: var(--font-size-md);
    line-height: 1.8;
    text-align: justify
}

.success-secondary-text {
    font-size: var(--font-size-sm) !important;
}

.success-actions {
    margin-top: 15px;
}

.success-actions .btn-reset-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 768px) {

    .reset-success-body {
        padding: 40px 24px 32px;
    }

    .success-content h2 {
        font-size: 30px;
    }

    .success-content p {
        font-size: 16px;
        line-height: 1.7;
    }

}

@media (max-width: 480px) {

    .success-header {
        padding: 20px;
    }

    .success-header-content {
        align-items: flex-start;
    }

    .success-header-content h1 {
        font-size: 22px;
    }

    .success-content h2 {
        font-size: 24px;
    }

    .success-content p {
        font-size: 15px;
    }

    .success-actions .btn-reset-submit {
        width: 100%;
    }

}

@media (max-width: 768px) {

    .auth-layout {
        padding: 20px 12px;
    }

    .login-card {
        border-radius: 18px;
    }

    .login-card-body {
        padding: 32px 24px 28px;
    }

    .login-card-header {
        padding: 28px 18px;
    }

    .login-card-header h1 {
        font-size: 20px;
    }

    .reset-card .login-card-header {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .reset-header-content h1 {
        font-size: 28px;
    }

    .reset-header-content p {
        font-size: 15px;
    }

    .reset-body {
        padding: 38px 24px 30px;
    }

    .reset-title h2 {
        font-size: 30px;
    }

    .reset-title p {
        font-size: 15px;
    }

    .reset-actions {
        flex-direction: column;
    }

    .btn-reset-back,
    .btn-reset-submit {
        width: 100%;
        min-width: 100%;
    }

    .reset-ribbon {
        display: none;
    }
}

@media (max-width: 480px) {

    .login-card-body {
        padding: 28px 18px 24px;
    }

    .login-input {
        height: 50px;
    }

    .reset-body {
        padding: 30px 18px 24px;
    }

    .reset-header-content h1 {
        font-size: 24px;
    }

    .reset-title h2 {
        font-size: 24px;
    }

    .reset-title p {
        font-size: 14px;
    }

    .reset-ribbon {
        display: none;
    }
}