.jd-auth-page {
    --jd-blue-start: #023020;
    --jd-blue-end: #023020;
    --jd-blue-deep: #023020;
    --jd-green: #23020;
    --jd-green-soft: #ebf8ef;
    --jd-text: #22395e;
    --jd-text-soft: #52607a;
    --jd-border: rgba(159, 187, 211, 0.65);
    --jd-shadow: 0 20px 48px rgba(76, 111, 158, 0.16);
    min-height: 100vh;
    margin: 0;
    padding: 24px 18px 40px;
    position: relative;
    overflow: hidden;
    font-family: "Source Sans Pro", sans-serif;
    background-color: #f7f8fd;
    background-image: url('../images/Network.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    width: 100%;
}



.jd-auth-shell {
    width: min(100%, 480px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jd-hero {
    text-align: center;
    padding: 8px 0 6px;
}

.jd-hero-brand {
    display: grid;
    justify-items: center;
}

.jd-hero-visual {
    width: min(100%, 372px);
    max-width: 100%;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 28px rgba(117, 142, 182, 0.2));
}

.jd-card-stack {
    position: relative;
    padding-top: 4px;
}

.jd-sheet {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 6px 8px 0;
}

.jd-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--jd-blue-deep);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.jd-back-link .material-icons {
    font-size: 20px;
}

.jd-sheet[data-active-panel="welcome"] .jd-back-link {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    height: 0;
}

.jd-title {
    margin: 0;
    text-align: center;
    color: var(--jd-blue-deep);
    font-size: clamp(36px, 8vw, 54px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.jd-title span {
    color: #2b65b8;
}

.jd-subtitle {
    margin: -10px 0 0;
    text-align: center;
    color: #2b3142;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
}

.jd-msg {
    width: 100%;
}

.jd-msg .alert {
    margin: 0;
    border: 1px solid rgba(222, 113, 113, 0.16);
    border-radius: 24px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.94);
    color: #8f3a3a;
    box-shadow: 0 14px 30px rgba(99, 117, 148, 0.1);
}

.jd-welcome-actions,
.jd-auth-extras,
.jd-guest-link {
    display: none;
}

.jd-sheet[data-active-panel="welcome"] .jd-welcome-actions {
    display: grid;
    gap: 16px;
}

.jd-sheet[data-active-panel="welcome"] .jd-auth-extras {
    display: block;
}

.jd-sheet[data-active-panel="welcome"] .jd-guest-link {
    display: block;
}

.jd-submit {
    width: 100%;
    min-height: 74px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jd-submit:hover,
.jd-submit:focus-visible,
.jd-social-btn:hover,
.jd-social-btn:focus-visible,
.jd-back-link:hover,
.jd-back-link:focus-visible,
.jd-guest-link a:hover,
.jd-guest-link a:focus-visible {
    transform: translateY(-1px);
}

.jd-submit:disabled {
    opacity: 0.74;
    cursor: not-allowed;
}

.jd-submit-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--jd-blue-start) 0%, var(--jd-blue-end) 100%);
    box-shadow: 0 18px 32px rgba(77, 116, 194, 0.24);
}

.jd-submit-outline {
    color: #58a58a;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 255, 249, 0.94) 100%);
    border-color: rgba(120, 199, 169, 0.75);
    box-shadow:
        0 0 0 2px rgba(120, 199, 169, 0.12),
        0 16px 30px rgba(118, 185, 155, 0.16);
}

.jd-submit.jd-secondary {
    color: #4d6480;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 252, 0.94) 100%);
    border-color: rgba(175, 193, 212, 0.78);
    box-shadow: 0 14px 28px rgba(105, 128, 157, 0.14);
}

.jd-form {
    display: none;
    gap: 16px;
}

.jd-form.active {
    display: grid;
}

.jd-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 0 18px;
    border: 1px solid rgba(181, 198, 219, 0.86);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--jd-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jd-field:focus-within {
    border-color: rgba(83, 167, 240, 0.88);
    box-shadow:
        0 0 0 4px rgba(83, 167, 240, 0.14),
        0 20px 40px rgba(76, 111, 158, 0.18);
}

.jd-field-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef6ff 0%, #d7e9fc 100%);
    color: #3f73b7;
}

.jd-field-icon .material-icons {
    font-size: 22px;
}

.jd-field-prefix {
    min-width: 54px;
    padding-right: 12px;
    border-right: 1px solid rgba(185, 201, 220, 0.8);
    color: var(--jd-text);
    font-size: 18px;
    font-weight: 700;
    transition: min-width 0.2s ease, padding 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.jd-login-identifier-field.is-email-mode .jd-field-prefix {
    min-width: 0;
    padding-right: 0;
    opacity: 0;
    border-right-color: transparent;
    overflow: hidden;
}

.jd-field .form-control,
.jd-field input {
    width: 100%;
    height: 70px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: var(--jd-text);
    font-size: 17px;
    font-weight: 600;
}

.jd-field .form-control::placeholder,
.jd-field input::placeholder {
    color: #7c89a0;
    font-weight: 500;
}

.jd-field .form-control:focus,
.jd-field input:focus {
    box-shadow: none;
}

.jd-icon-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 50%;
    background: #edf4fd;
    color: #5a86c4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.jd-icon-btn .material-icons {
    font-size: 22px;
}

.jd-field label.error {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    margin: 0;
    color: #c64d4d;
    font-size: 12px;
    font-weight: 600;
}

.jd-otp-box {
    display: none;
}

.jd-otp-box.active {
    display: block;
}

.jd-otp-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

#otp_box:not(.active) ~ .jd-otp-actions .jd-secondary {
    display: none;
}

#otp_box.active ~ .jd-otp-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jd-form-foot {
    margin-top: -2px;
    text-align: center;
    font-size: 15px;
    color: var(--jd-text-soft);
}

.jd-form-foot a {
    color: #2a63b6;
    font-weight: 700;
    text-decoration: none;
}

.jd-auth-extras {
    margin-top: 2px;
}

.jd-social {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 8px;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
}


.jd-social-item {
    display: flex;
    justify-content: center;
}

.jd-social-item-full {
    grid-column: 1 / -1;
}

.jd-social-btn {
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14181f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.jd-social-btn img,
.jd-social-btn-google-icon,
.jd-social-btn-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(181, 198, 219, 0.86);
    box-shadow: 0 14px 26px rgba(100, 124, 161, 0.16);
}

.jd-social-btn img {
    object-fit: contain;
}

.jd-social-btn-google-icon {
    padding: 11px;
}

.jd-social-btn-google-icon svg {
    width: 100%;
    height: 100%;
}

.jd-social-btn-icon .material-icons {
    font-size: 28px;
}

.jd-social-btn-otp-icon {
    background: linear-gradient(180deg, #eef6ff 0%, #d7e7ff 100%);
    color: #3268ba;
}

.jd-social-label {
    flex: 1 1 auto;
}

.jd-social-status,
.google-fallback-note {
    min-height: 0px;
    margin-top: 0px;
    text-align: center;
    font-size: 13px;
    color: #c45656;
}

.jd-social-status.success {
    color: #2a8d62;
}

.jd-guest-link {
    text-align: center;
}

.jd-guest-link a {
    display: inline-block;
    color: var(--jd-blue-deep);
    font-size: 17px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.jd-auth-switcher,
.jd-switch,
.jd-terms {
    display: none;
}

.jd-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#otp_recaptcha_container {
    min-height: 1px;
}

.jd-auth-page.lg-arb {
    direction: rtl;
}

.jd-auth-page.lg-arb .jd-back-link .material-icons {
    transform: scaleX(-1);
}

.jd-auth-page.lg-arb .jd-field-prefix {
    padding-right: 0;
    padding-left: 12px;
    border-right: 0;
    border-left: 1px solid rgba(185, 201, 220, 0.8);
}

@media (max-width: 520px) {
    .jd-auth-page {
        padding: 18px 14px 32px;
    }

    .jd-auth-shell {
        
    }

    .jd-title {
        font-size: 29px;
    }

    .jd-subtitle {
        font-size: 16px;
    }

    .jd-social {
        grid-template-columns: repeat(3, auto);
        gap: 8px;
    }

    .jd-social-item-full {
        grid-column: 1 / -1;
    }

    .jd-social-btn {
        min-height: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: 16px;
    }

    .jd-social-btn img,
    .jd-social-btn-google-icon,
    .jd-social-btn-icon {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }
    
}

@media (max-width: 380px) {
    
    .jd-sheet {
        padding-left: 2px;
        padding-right: 2px;
    }

    .jd-title {
        font-size: 29px;
    }

    .jd-field,
    .jd-submit {
        min-height: 64px;
    }

    .jd-social-btn img,
    .jd-social-btn-google-icon,
    .jd-social-btn-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .jd-field .form-control,
    .jd-field input,
    .jd-submit {
        font-size: 16px;
    }
}
