/* ==========================================================
   Authentication Pages
   Costa Power Industries Pvt Ltd
========================================================== */

* {
    box-sizing: border-box;
}

.auth-page {
    width: 100%;
    min-height: calc(100vh - 80px);
    margin: 0;
    padding: 0;
    background: #f4f8fc;
    font-family: Arial, Helvetica, sans-serif;
}

.auth-section {
    width: 100%;
    padding: 60px 0;
}

.auth-container {
    width: 92%;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(13, 54, 86, 0.14);
}

/* ==========================================================
   Left Promotional Panel
========================================================== */

.auth-promo-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 650px;
    overflow: hidden;
    padding: 58px;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.16),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #003b73 0%,
            #005d9f 52%,
            #0a7fc3 100%
        );
}

.auth-promo-panel::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.auth-promo-panel::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: -130px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.auth-promo-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.auth-promo-content h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
}

.auth-promo-content h1 span {
    display: block;
    margin-top: 8px;
    color: #ffd23f;
}

.auth-promo-content > p {
    max-width: 550px;
    margin: 0 0 32px;
    color: #e8f3fc;
    font-size: 17px;
    line-height: 1.75;
}

.auth-benefits {
    display: grid;
    gap: 18px;
}

.auth-benefit-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: flex-start;
    gap: 13px;
}

.auth-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffd23f;
    color: #092a43;
    font-size: 17px;
    font-weight: 900;
}

.auth-benefit-item strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.auth-benefit-item small {
    display: block;
    color: #d8e8f5;
    font-size: 13px;
    line-height: 1.55;
}

.auth-support-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 34px;
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(0, 32, 61, 0.26);
}

.auth-support-box span {
    color: #d9eaf7;
    font-size: 14px;
}

.auth-support-box a {
    color: #ffd23f;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.auth-support-box a:hover {
    color: #ffffff;
}

/* ==========================================================
   Right Login Form Panel
========================================================== */

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 50px;
    background: #ffffff;
}

.auth-form-card {
    width: 100%;
    max-width: 470px;
}

.auth-form-heading {
    margin-bottom: 30px;
    text-align: left;
}

.auth-form-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #006ba9;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-form-heading h2 {
    margin: 0 0 12px;
    color: #102f49;
    font-size: 34px;
    line-height: 1.22;
    font-weight: 800;
}

.auth-form-heading p {
    margin: 0;
    color: #6c7f8e;
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================================
   Form Fields
========================================================== */

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 21px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #17364f;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.auth-field label span {
    color: #d6333c;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    color: #628097;
    font-size: 17px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 76px 0 46px;
    border: 1px solid #d9e3ec;
    border-radius: 9px;
    outline: none;
    background: #f9fbfd;
    color: #17364f;
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.auth-input-wrap input::placeholder {
    color: #98a7b3;
}

.auth-input-wrap input:hover {
    border-color: #b9cad7;
}

.auth-input-wrap input:focus {
    border-color: #0070b5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 112, 181, 0.11);
}

.auth-input-wrap input.auth-input-error {
    border-color: #dc3545;
    background: #fffafa;
}

.password-toggle {
    position: absolute;
    right: 9px;
    z-index: 3;
    min-width: 58px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: #eaf3f9;
    color: #006ba9;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.password-toggle:hover {
    background: #006ba9;
    color: #ffffff;
}

.auth-field-error {
    display: block;
    min-height: 17px;
    margin-top: 6px;
    color: #cf2734;
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================
   Options
========================================================== */

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 24px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5d7181;
    font-size: 13px;
    cursor: pointer;
}

.remember-option input {
    width: 17px;
    height: 17px;
    accent-color: #006ba9;
}

.forgot-password-link {
    color: #006ba9;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #004c7a;
    text-decoration: underline;
}

/* ==========================================================
   Buttons
========================================================== */

.auth-submit-btn,
.auth-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.auth-submit-btn {
    border: 1px solid #006ba9;
    background: #006ba9;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 107, 169, 0.2);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    border-color: #004f80;
    background: #004f80;
    box-shadow: 0 15px 28px rgba(0, 79, 128, 0.24);
}

.auth-submit-btn:disabled {
    transform: none;
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-secondary-btn {
    border: 1px solid #d4e0e8;
    background: #ffffff;
    color: #17364f;
}

.auth-secondary-btn:hover {
    transform: translateY(-2px);
    border-color: #ffd23f;
    background: #ffd23f;
    color: #101820;
}

/* ==========================================================
   Divider and Policy
========================================================== */

.auth-divider {
    position: relative;
    margin: 25px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e9ef;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0 14px;
    background: #ffffff;
    color: #91a0ab;
    font-size: 12px;
    text-transform: uppercase;
}

.auth-policy-text {
    margin: 22px 0 0;
    color: #82919d;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

.auth-policy-text a {
    color: #006ba9;
    font-weight: 700;
    text-decoration: none;
}

.auth-policy-text a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Form Messages
========================================================== */

.auth-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-message.auth-success {
    border: 1px solid #a8dfbf;
    background: #eaf8f0;
    color: #17673a;
}

.auth-message.auth-error {
    border: 1px solid #f1b7bd;
    background: #fff0f1;
    color: #9b2430;
}

/* ==========================================================
   Responsive Design
========================================================== */

@media (max-width: 1100px) {
    .auth-promo-panel {
        padding: 46px;
    }

    .auth-promo-content h1 {
        font-size: 40px;
    }

    .auth-form-panel {
        padding: 42px;
    }
}

@media (max-width: 900px) {
    .auth-section {
        padding: 40px 0;
    }

    .auth-container {
        width: 90%;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-promo-panel {
        min-height: auto;
        padding: 48px;
    }

    .auth-promo-content {
        max-width: 100%;
    }

    .auth-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-form-panel {
        padding: 48px;
    }
}

@media (max-width: 650px) {
    .auth-section {
        padding: 26px 0;
    }

    .auth-container {
        width: 94%;
        border-radius: 16px;
    }

    .auth-promo-panel {
        padding: 35px 26px;
    }

    .auth-promo-content h1 {
        font-size: 31px;
    }

    .auth-promo-content > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
    }

    .auth-form-panel {
        padding: 36px 25px;
    }

    .auth-form-heading h2 {
        font-size: 29px;
    }
}

@media (max-width: 480px) {
    .auth-promo-panel {
        padding: 30px 20px;
    }

    .auth-promo-content h1 {
        font-size: 27px;
    }

    .auth-eyebrow {
        font-size: 11px;
    }

    .auth-support-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-form-panel {
        padding: 31px 20px;
    }

    .auth-form-heading h2 {
        font-size: 26px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .auth-input-wrap input {
        height: 52px;
        padding-left: 43px;
    }

    .auth-submit-btn,
    .auth-secondary-btn {
        min-height: 52px;
    }
}

.register-options {
    align-items: flex-start;
    margin-bottom: 6px;
}

.register-options .remember-option {
    align-items: flex-start;
    line-height: 1.6;
}

.register-options .remember-option input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.register-options a {
    color: #006ba9;
    font-weight: 700;
    text-decoration: none;
}

.register-options a:hover {
    text-decoration: underline;
}
/* ==========================================================
   Reset Password
========================================================== */

.password-strength-box {
    margin-top: 9px;
}

.password-strength-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 20px;
    background: #e7edf2;
}

.password-strength-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #c6d0d8;
    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.password-strength-weak {
    background: #dc3545;
}

.password-strength-medium {
    background: #e2a000;
}

.password-strength-strong {
    background: #198754;
}

.password-strength-box small {
    display: block;
    margin-top: 7px;
    color: #718392;
    font-size: 12px;
    line-height: 1.4;
}

.reset-password-rules {
    margin: 2px 0 24px;
    padding: 17px 18px;
    border: 1px solid #dfe8ef;
    border-radius: 9px;
    background: #f8fbfd;
}

.reset-password-rules strong {
    display: block;
    margin-bottom: 10px;
    color: #17364f;
    font-size: 13px;
}

.reset-password-rules ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reset-password-rules li {
    position: relative;
    padding-left: 20px;
    color: #788996;
    font-size: 12px;
    line-height: 1.45;
}

.reset-password-rules li::before {
    content: "○";
    position: absolute;
    top: 0;
    left: 0;
    color: #9caab4;
    font-weight: 800;
}

.reset-password-rules li.password-rule-valid {
    color: #198754;
}

.reset-password-rules li.password-rule-valid::before {
    content: "✓";
    color: #198754;
}

@media (max-width: 480px) {
    .reset-password-rules ul {
        grid-template-columns: 1fr;
    }
}