/* =========================================================
   PARTNER LOGIN PAGE
========================================================= */

.login-section {
    min-height: 100vh;
    padding: 120px 60px 80px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(197, 160, 89, 0.08),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--darker) 0%,
            var(--dark) 55%,
            #1A1020 100%
        );
    display: flex;
    align-items: center;
}

.login-section .wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================================================
   SECTION HEADER
========================================================= */

.login-section .section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.login-section .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    margin-bottom: 16px;
}

.login-section .seal {
    width: 32px;
    height: 32px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(197,160,89,0.12);
    border: 1px solid rgba(197,160,89,0.3);

    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
}

.login-section .section-head h2 {
    color: var(--text);
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.login-section .section-head p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);
}


/* =========================================================
   LEFT SIDE
========================================================= */

.login-info {
    padding: 55px 50px;

    background:
        linear-gradient(
            145deg,
            rgba(197,160,89,0.10),
            rgba(197,160,89,0.02)
        );

    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-info .eyebrow {
    justify-content: flex-start;
    margin-bottom: 12px !important;
}

.login-info h2 {
    color: var(--text);
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.login-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}


/* =========================================================
   LOGIN BENEFITS
========================================================= */

.login-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-benefits li {
    position: relative;

    color: var(--text-muted);
    font-size: 14px;

    padding: 13px 0 13px 30px;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.login-benefits li:last-child {
    border-bottom: none;
}

.login-benefits li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 11px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(197,160,89,0.12);
    color: var(--gold);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.login-form-side {
    padding: 55px 50px;
}

.login-form-side h3 {
    color: var(--gold);
    font-size: 28px;
    margin-bottom: 30px;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    width: 100%;
}

.login-form .field {
    margin-bottom: 20px;
}

.login-form .field label {
    display: block;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 8px;
}

.login-form .field input {
    width: 100%;
    height: 50px;

    padding: 13px 16px;

    background: var(--darker);

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text);

    font-family: 'Inter', sans-serif;
    font-size: 14px;

    outline: none;

    transition: all 0.3s ease;
}

.login-form .field input::placeholder {
    color: #5f5f72;
}

.login-form .field input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(197,160,89,0.10);
}

.login-form .field input:read-only {
    background: rgba(255,255,255,0.025);
    color: #888;
    cursor: not-allowed;
}


/* =========================================================
   OTP SECTION
========================================================= */

#otp_section {
    animation: otpSlideDown 0.3s ease;
}

@keyframes otpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#otp {
    letter-spacing: 6px;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700;
}


/* =========================================================
   RESEND
========================================================= */

#resend_section {
    margin-top: -8px !important;
    margin-bottom: 15px;
}

.resend-btn {
    padding: 0;

    font-family: 'Inter', sans-serif;
    font-size: 12px;

    transition: all 0.3s ease;
}

.resend-btn:not(:disabled):hover {
    color: var(--gold) !important;
    text-decoration: underline;
}

.resend-btn:disabled {
    opacity: 0.7;
}


/* =========================================================
   REMEMBER ME
========================================================= */

.row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 5px 0 22px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--text-muted);

    font-size: 13px;

    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;

    accent-color: var(--gold);

    cursor: pointer;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn-full {
    width: 100%;
}

.login-form .btn-primary {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-family: 'Inter', sans-serif;
}

.login-form .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn-text,
.submit-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   DIVIDER
========================================================= */

.divider {
    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--text-muted);

    font-size: 12px;

    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: rgba(255,255,255,0.07);
}


/* =========================================================
   ALTERNATIVE LOGIN LINKS
========================================================= */

.login-alt {
    display: flex;
    flex-direction: column;

    gap: 12px;

    text-align: center;
}

.login-alt a {
    color: var(--gold);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.login-alt a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}


/* =========================================================
   LOGIN NOTE
========================================================= */

.login-note {
    color: #68687b;

    font-size: 11px;

    line-height: 1.6;

    text-align: center;

    margin-top: 25px;
}


/* =========================================================
   SWEET ALERT
========================================================= */

.my-swal-popup {
    background: var(--card) !important;

    color: var(--text) !important;

    border: 1px solid var(--border) !important;

    border-radius: 18px !important;
}

.swal2-title {
    color: var(--text) !important;
}

.swal2-html-container,
.swal2-content {
    color: var(--text-muted) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .login-section {
        padding: 110px 25px 60px;
    }

    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px 35px;
    }

    .login-form-side {
        padding: 40px 35px;
    }

}


@media (max-width: 600px) {

    .login-section {
        padding: 95px 16px 40px;
    }

    .login-section .section-head {
        margin-bottom: 30px;
    }

    .login-section .section-head h2 {
        font-size: 32px;
    }

    .login-section .section-head p {
        font-size: 14px;
    }

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

    .login-info {
        padding: 30px 24px;
    }

    .login-form-side {
        padding: 30px 24px;
    }

    .login-info h2 {
        font-size: 26px;
    }

    .login-form-side h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .login-form .field input {
        height: 48px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .login-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-info,
    .login-form-side {
        padding: 25px 18px;
    }

    .login-section .section-head h2 {
        font-size: 28px;
    }

}



/* =========================================================
   REGISTRATION SECTION
========================================================= */

#register {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(197,160,89,0.07),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            var(--darker) 0%,
            var(--dark) 100%
        );
}

#register .wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
========================================================= */

#register .section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}

#register .section-head .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    margin-bottom: 16px;
}

#register .section-head .seal {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(197,160,89,0.12);
    border: 1px solid rgba(197,160,89,0.30);

    color: var(--gold);

    font-size: 10px;
    font-weight: 700;
}

#register .section-head h2 {
    color: var(--text);

    font-size: 42px;
    line-height: 1.2;

    margin-bottom: 14px;
}

#register .section-head p {
    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.8;

    max-width: 680px;
    margin: 0 auto;
}


/* =========================================================
   REGISTRATION PANEL
========================================================= */

.reg-panel {
    position: relative;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 45px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);
}

/* Gold top line */

.reg-panel::before {
    content: "";

    position: absolute;

    top: 0;
    left: 15%;
    right: 15%;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );
}


/* =========================================================
   FORM
========================================================= */

#registration_form {
    width: 100%;
}

#registration_form .reg-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   FORM FIELD
========================================================= */

#registration_form .field {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

#registration_form .field label {
    display: block;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 9px;
}


/* =========================================================
   INPUTS
========================================================= */

#registration_form .field input {
    width: 100%;
    height: 52px;

    padding: 14px 16px;

    background: var(--darker);

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text);

    font-family: 'Inter', sans-serif;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

#registration_form .field input::placeholder {
    color: #626275;
}

#registration_form .field input:hover {
    border-color: rgba(197,160,89,0.25);
}

#registration_form .field input:focus {
    border-color: var(--gold);

    background: rgba(8,8,15,0.95);

    box-shadow:
        0 0 0 3px rgba(197,160,89,0.10);
}


/* =========================================================
   PHONE FIELD
========================================================= */

#registration_form #phone {
    letter-spacing: 0.5px;
}


/* =========================================================
   OTP
========================================================= */

#registration_form #otp_section {
    animation: otpShow 0.3s ease;
}

@keyframes otpShow {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

#registration_form #otp {
    text-align: center;

    letter-spacing: 7px;

    font-size: 18px;

    font-weight: 700;
}

#registration_form #otp_help {
    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   RESEND BUTTON
========================================================= */

#registration_form .resend-btn {
    align-self: flex-start;

    font-family: 'Inter', sans-serif;

    font-size: 12px;
    font-weight: 600;

    transition: all 0.3s ease !important;
}

#registration_form .resend-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed !important;
}

#registration_form .resend-btn:not(:disabled) {
    background: var(--gold) !important;

    color: var(--dark) !important;

    cursor: pointer !important;

    border-color: var(--gold);
}

#registration_form .resend-btn:not(:disabled):hover {
    background: var(--gold-light) !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(197,160,89,0.20);
}


/* =========================================================
   FORM MESSAGE
========================================================= */

#form_message {
    padding: 12px 15px;

    border-radius: 9px;

    font-size: 13px;

    line-height: 1.5;
}


/* Success */

#form_message.success {
    display: block;

    background: rgba(46,204,113,0.08);

    border: 1px solid rgba(46,204,113,0.25);

    color: var(--success);
}


/* Error */

#form_message.error {
    display: block;

    background: rgba(231,76,60,0.08);

    border: 1px solid rgba(231,76,60,0.25);

    color: var(--danger);
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

#registration_form .form-actions {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 35px;
}


/* Primary button */

#registration_form .submit-btn {
    flex: 1;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 15px 25px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-light)
        );

    color: var(--dark);

    font-family: 'Inter', sans-serif;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.4px;

    cursor: pointer;

    transition: all 0.3s ease;
}

#registration_form .submit-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(197,160,89,0.28);
}

#registration_form .submit-btn:active {
    transform: translateY(0);
}

#registration_form .submit-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none !important;

    box-shadow: none !important;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

#registration_form .btn-secondary {
    min-height: 54px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 25px;

    border: 1px solid rgba(197,160,89,0.45);

    border-radius: 11px;

    background: rgba(197,160,89,0.05);

    color: var(--gold);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: all 0.3s ease;
}

#registration_form .btn-secondary:hover {
    background: rgba(197,160,89,0.12);

    border-color: var(--gold);

    color: var(--gold-light);

    transform: translateY(-2px);
}


/* =========================================================
   LOADER
========================================================= */

#registration_form .submit-loader {
    display: inline-flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   PARSLEY VALIDATION
========================================================= */

#registration_form .parsley-error {
    border-color: var(--danger) !important;

    box-shadow:
        0 0 0 3px rgba(231,76,60,0.08) !important;
}

#registration_form .parsley-success {
    border-color: var(--success) !important;
}

#registration_form .parsley-errors-list {
    margin: 6px 0 0;
    padding: 0;

    list-style: none;

    color: var(--danger);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   HIDDEN INPUTS
========================================================= */

#registration_form input[type="hidden"] {
    display: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #register {
        padding: 70px 20px;
    }

    #register .section-head {
        margin-bottom: 30px;
    }

    #register .section-head h2 {
        font-size: 34px;
    }

    #register .section-head p {
        font-size: 14px;
    }

    .reg-panel {
        padding: 30px 24px;

        border-radius: 18px;
    }

    #registration_form .reg-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    #registration_form .form-actions {
        flex-direction: column;

        align-items: stretch;
    }

    #registration_form .submit-btn,
    #registration_form .btn-secondary {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    #register {
        padding: 55px 15px;
    }

    #register .section-head h2 {
        font-size: 29px;
    }

    .reg-panel {
        padding: 25px 18px;
    }

    #registration_form .field input {
        height: 49px;

        padding: 12px 14px;
    }

    #registration_form #otp {
        letter-spacing: 5px;
    }

}