/* Giriş ekranı — açık iki panelli düzen, sol panelde çizgisel X (LoginLayout + Login.razor)
   Renkler Radzen default temasından ve logolardan alınmıştır:
   #28363C koyu (rz-base-900) · #FF6D41 aksan (rz-primary) · #35A0D7 odak (rz-secondary)
   #FAC152 çizgisel X (rz-warning)
   #5FB9D9 dist-Hub · #303234 CargoX */

.dh-login {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

/* ---- Sol: marka paneli ---- */
.dh-login-brand {
    position: relative;
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    padding: 48px 56px 32px;
    background: #F1F4F5;
    overflow: hidden;
}

.dh-login-logo {
    display: block;
    width: 240px;
    max-width: 100%;
    margin-bottom: 28px;
}

/* Logodaki X, iç içe üç ince kontur olarak; açılışta bir kez çizilir */
.dh-login-xline {
    position: absolute;
    right: -8%;
    top: 50%;
    width: 72%;
    max-width: 720px;
    transform: translateY(-50%);
    pointer-events: none;
}

    .dh-login-xline polygon {
        fill: none;
        stroke: #FAC152;
        stroke-width: 0.8; /* viewBox birimi; ~720px genişlikte ≈2px */
        stroke-dasharray: 100; /* polygon pathLength="100" ile ölçekten bağımsız */
        stroke-dashoffset: 100;
        animation: dh-draw 2.4s ease-out forwards;
    }

        .dh-login-xline polygon:nth-child(2) {
            opacity: 0.7;
            animation-delay: 0.3s;
        }

        .dh-login-xline polygon:nth-child(3) {
            opacity: 0.45;
            animation-delay: 0.6s;
        }

@keyframes dh-draw {
    to { stroke-dashoffset: 0; }
}

.dh-login-hero {
    position: relative;
    z-index: 1;
    margin: auto 0;
    max-width: 480px;
}

    .dh-login-hero h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 600;
        line-height: 1.2;
        color: #1E2A33;
    }

    .dh-login-hero::after {
        content: "";
        display: block;
        width: 56px;
        height: 3px;
        margin-top: 20px;
        background: #FF6D41;
    }

    .dh-login-hero p {
        margin: 16px 0 0;
        font-size: 1.05rem;
        line-height: 1.6;
        color: #5B686E;
    }

.dh-login-brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #6B777C;
}

    .dh-login-brand-footer img {
        height: 28px;
        border-radius: 4px;
    }

/* ---- Sağ: form paneli ---- */
.dh-login-panel {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.dh-login-form {
    width: 100%;
    max-width: 380px;
}

.dh-login-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1E2A33;
}

.dh-login-subtitle {
    margin: 6px 0 28px;
    font-size: 0.95rem;
    color: #6B777C;
}

.dh-login-form .dh-login-label,
.dh-pw .dh-login-label {
    display: block;
    margin: 16px 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3A474D;
}

.dh-login-form .rz-textbox,
.dh-login-form .rz-dropdown,
.dh-pw .rz-textbox {
    width: 100%;
    height: 2.75rem;
    border-radius: 8px;
    border-color: #D5DDE2;
}

.dh-login-form .rz-dropdown {
    display: flex;
    align-items: center;
}

    .dh-login-form .rz-textbox:focus,
    .dh-pw .rz-textbox:focus,
    .dh-login-form .rz-dropdown.rz-state-focus,
    .dh-login-form .rz-dropdown:focus-within {
        border-color: #35A0D7;
        box-shadow: 0 0 0 3px rgba(53, 160, 215, 0.18);
    }

.dh-login-form .dh-login-button,
.dh-pw .dh-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.875rem;
    margin-top: 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    /* Radzen arka planı !important ile var(--rz-primary*) üzerinden veriyor; renkleri değişkenle eziyoruz */
    --rz-primary: #28363C;
    --rz-primary-light: #3A474D;
    --rz-primary-dark: #3A474D;
    --rz-primary-darker: #1E2A33;
}

    /* Ok simgesi yazının sağında ve turuncu */
    .dh-login-form .dh-login-button .rz-button-box,
    .dh-pw .dh-login-button .rz-button-box {
        flex-direction: row-reverse;
        gap: 8px;
    }

    .dh-login-form .dh-login-button .rzi,
    .dh-pw .dh-login-button .rzi {
        margin: 0;
        color: #FF6D41;
    }

.dh-login-info {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(53, 160, 215, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #2878A1;
}

.dh-login-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.8rem;
    color: #6B777C;
}

    .dh-login-steps .dh-step {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 1px solid #D5DDE2;
        font-size: 0.75rem;
    }

        .dh-login-steps .dh-step.active {
            border-color: #FF6D41;
            background: #FF6D41;
            color: #ffffff;
        }

    .dh-login-steps .dh-step-line {
        flex: 1;
        height: 1px;
        background: #D5DDE2;
    }

.dh-login-note {
    margin-top: 20px;
    font-size: 0.85rem;
    text-align: center;
    color: #8A999F;
}

/* ---- Şifre süresi dolanlar için pop-up (UpdateUserIdentityPasswordPage) ---- */
.rz-dialog.dh-pw-dialog {
    border-radius: 12px;
    overflow: hidden;
}

    .rz-dialog.dh-pw-dialog .rz-dialog-content {
        padding: 32px;
    }

.dh-pw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 109, 65, 0.12);
}

    .dh-pw-icon .rzi {
        font-size: 26px;
        color: #FF6D41;
    }

.dh-pw-title {
    margin: 16px 0 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E2A33;
}

.dh-pw-subtitle {
    margin: 6px 0 12px;
    font-size: 0.95rem;
    color: #6B777C;
}

.dh-pw-field {
    position: relative;
}

    .dh-pw-field .rz-textbox {
        padding-right: 44px;
    }

.dh-pw-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    border: none;
    background: transparent;
    color: #6B777C;
    cursor: pointer;
}

    .dh-pw-eye:hover {
        color: #28363C;
    }

/* Güç göstergesi: 3 parça çubuk + etiket */
.dh-pw-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.dh-pw-bars {
    flex: 1;
    display: flex;
    gap: 6px;
}

    .dh-pw-bars span {
        flex: 1;
        height: 6px;
        border-radius: 3px;
        background: #E6EAEC;
        transition: background-color 0.2s;
    }

    .dh-pw-bars.dh-pw-weak span:nth-child(1) { background: #E5534B; }
    .dh-pw-bars.dh-pw-medium span:nth-child(-n+2) { background: #FAC152; }
    .dh-pw-bars.dh-pw-strong span { background: #5DBF74; }

.dh-pw-strength-text {
    min-width: 72px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8A999F;
}

    .dh-pw-strength-text.dh-pw-weak { color: #C9372C; }
    .dh-pw-strength-text.dh-pw-medium { color: #B8862A; }
    .dh-pw-strength-text.dh-pw-strong { color: #3E9A55; }

/* Kural listesi: sağlananlar yeşil tikle işaretlenir */
.dh-pw-rules {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F1F4F5;
    list-style: none;
}

    .dh-pw-rules li {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 3px 0;
        font-size: 0.85rem;
        color: #6B777C;
    }

        .dh-pw-rules li .rzi {
            font-size: 18px;
            color: #A9B6BC;
        }

        .dh-pw-rules li.ok {
            color: #1E2A33;
        }

            .dh-pw-rules li.ok .rzi {
                color: #5DBF74;
            }

.dh-pw-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #6B777C;
    cursor: pointer;
}

    .dh-pw-cancel:hover {
        color: #1E2A33;
        text-decoration: underline;
    }

@media (prefers-reduced-motion: reduce) {
    .dh-login-xline polygon {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* ---- Dar ekran: marka paneli üst şeride iner ---- */
@media (max-width: 991.98px) {
    .dh-login {
        flex-direction: column;
    }

    .dh-login-brand {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
    }

    .dh-login-logo {
        width: 160px;
    }

    .dh-login-xline,
    .dh-login-hero h1,
    .dh-login-hero p,
    .dh-login-hero::after {
        display: none;
    }

    .dh-login-hero {
        margin: 0;
    }

    .dh-login-logo {
        margin-bottom: 0;
    }

    .dh-login-panel {
        justify-content: flex-start;
        padding: 32px 20px 24px;
    }
}
