/* =========================
   BODY
========================= */

body{
    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(34,197,94,.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(245,158,11,.16),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #e9f8ef,
            #f7fbf8 48%,
            #fff8e8
        );
}

/* =========================
   PAGE
========================= */

.login-page{
    min-height:100vh;

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

    position:relative;

    padding:30px 18px;

    overflow:hidden;
}

/* =========================
   BACKGROUND SHAPES
========================= */

.login-decoration{
    position:absolute;

    border-radius:999px;

    filter:blur(2px);

    pointer-events:none;
}

.decoration-one{
    width:360px;
    height:360px;

    top:-150px;
    left:-110px;

    background:
        linear-gradient(
            135deg,
            rgba(34,197,94,.27),
            rgba(22,163,74,.05)
        );
}

.decoration-two{
    width:310px;
    height:310px;

    right:-110px;
    bottom:-120px;

    background:
        linear-gradient(
            135deg,
            rgba(245,158,11,.23),
            rgba(249,115,22,.04)
        );
}

.decoration-three{
    width:90px;
    height:90px;

    right:12%;
    top:13%;

    background:rgba(22,163,74,.10);
}

/* =========================
   LOGIN CARD
========================= */

.login-card{
    width:100%;
    max-width:460px;

    position:relative;
    z-index:2;

    padding:35px 38px 27px;

    border:1px solid rgba(255,255,255,.85);
    border-radius:28px;

    background:rgba(255,255,255,.91);

    box-shadow:
        0 30px 70px rgba(30,72,51,.16),
        0 8px 24px rgba(30,72,51,.08);

    backdrop-filter:blur(16px);
}

/* =========================
   BRAND
========================= */

.brand-area{
    text-align:center;

    margin-bottom:28px;
}

.logo-box{
    height:auto;
    margin-bottom:25px;
}

.logo-box img{
    width:300px;
    max-width:100%;
    max-height:none;
    height:auto;
    object-fit:contain;
}

.fallback-logo{
    display:none;

    align-items:center;
    justify-content:center;
    gap:10px;

    font-size:32px;
    font-weight:800;

    color:var(--primary-dark);
}

.fallback-icon{
    font-size:42px;
}

.brand-area h1{
    font-size:30px;
    line-height:1.15;

    color:#17231c;

    letter-spacing:-.7px;
}

.brand-area p{
    margin-top:8px;

    color:var(--muted);

    font-size:14px;
    font-weight:500;
}

 /* =========================
           ŞİFREMİ UNUTTUM
        ========================== */

        .forgot-password-row {

            margin-top: 10px;

            display: flex;

            justify-content: flex-end;
        }


        .forgot-password-btn {

            padding: 0;

            border: 0;

            background: transparent;

            color: #6259e8;

            font-size: 13px;

            font-weight: 700;

            cursor: pointer;
        }


        .forgot-password-btn:hover {

            text-decoration: underline;
        }


        /* =========================
           MODAL
        ========================== */

        .forgot-modal {

            position: fixed;

            z-index: 5000;

            inset: 0;

            display: flex;

            align-items: center;

            justify-content: center;

            padding: 20px;

            background:
                rgba(20, 24, 36, .55);

            backdrop-filter:
                blur(5px);
        }


        .forgot-modal[hidden] {

            display: none;
        }


        .forgot-modal-card {

            width: min(
                100%,
                430px
            );

            padding: 28px;

            border-radius: 24px;

            background: #fff;

            box-shadow:
                0 25px 70px
                rgba(20, 24, 36, .22);

            text-align: center;
        }


        .forgot-modal-icon {

            width: 64px;
            height: 64px;

            margin:
                0 auto 16px;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 20px;

            background: #f0eeff;

            font-size: 30px;
        }


        .forgot-modal-card h2 {

            margin:
                0 0 10px;

            color: #202331;

            font-size: 22px;
        }


        .forgot-modal-card p {

            margin:
                0;

            color: #777d8c;

            font-size: 14px;

            line-height: 1.65;
        }


        .forgot-security-note {

            margin-top: 16px !important;

            padding: 12px 14px;

            border-radius: 14px;

            background: #f7f8fb;

            color: #646a78 !important;

            font-size: 12px !important;
        }


        .forgot-modal-close {

            width: 100%;

            min-height: 48px;

            margin-top: 20px;

            border: 0;

            border-radius: 14px;

            background: #6259e8;

            color: #fff;

            font-size: 14px;

            font-weight: 800;

            cursor: pointer;
        }

/* =========================
   KARTLA GÜVENLİ GİRİŞ
========================= */

.secure-login-trigger {
    border: 0;
    font-family: inherit;
    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.secure-login-trigger:hover {
    transform: translateY(-1px);

    background: #bbf7d0;

    box-shadow:
        0 7px 16px rgba(22, 163, 74, .15);
}

.secure-login-trigger:active {
    transform: translateY(0);
}


/* =========================
   KART MODALI
========================= */

body.modal-open {
    overflow: hidden;
}

.card-login-modal[hidden] {
    display: none !important;
}

.card-login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

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

    padding: 20px;

    background: rgba(15, 34, 24, .62);

    backdrop-filter: blur(7px);
}

.card-login-modal-card {
    width: 100%;
    max-width: 390px;

    position: relative;

    padding: 36px 28px 27px;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 25px;

    background:
        linear-gradient(
            155deg,
            #ffffff,
            #f2fff6
        );

    text-align: center;

    box-shadow:
        0 30px 80px rgba(4, 35, 18, .30);

    animation:
        cardLoginOpen .22s ease-out;
}

@keyframes cardLoginOpen {

    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

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

.card-login-close {
    width: 38px;
    height: 38px;

    position: absolute;
    top: 13px;
    right: 13px;

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

    border: 0;
    border-radius: 12px;

    background: #edf7f0;

    color: #50645a;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.card-login-close:hover {
    background: #dcfce7;
    color: var(--primary-dark);
}


/* =========================
   KART İKONU
========================= */

.card-login-icon {
    width: 104px;
    height: 104px;

    position: relative;

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

    margin: 4px auto 21px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #dcfce7,
            #bbf7d0
        );

    box-shadow:
        0 14px 28px rgba(22, 163, 74, .20);
}

.card-login-card-symbol {
    font-size: 48px;

    animation:
        cardPulse 1.45s ease-in-out infinite;
}

@keyframes cardPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

.card-login-wave {
    position: absolute;
    right: 14px;

    color: var(--primary);

    font-size: 25px;
    font-weight: 800;

    opacity: .35;

    animation:
        cardWave 1.3s ease-in-out infinite;
}

.wave-one {
    right: 16px;
}

.wave-two {
    right: 7px;
    animation-delay: .18s;
}

@keyframes cardWave {

    0%,
    100% {
        opacity: .2;
        transform: scale(.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}


/* =========================
   MODAL METİNLERİ
========================= */

.card-login-modal-card h2 {
    margin-bottom: 9px;

    color: #17231c;

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

    letter-spacing: -.4px;
}

.card-login-modal-card > p {
    max-width: 310px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================
   KART DURUMU
========================= */

.card-login-status {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin: 23px 0 17px;
    padding: 12px 14px;

    border: 1px solid #bbf7d0;
    border-radius: 14px;

    background: #f0fdf4;

    color: var(--primary-dark);

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

.card-login-status-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 5px rgba(22, 163, 74, .12);

    animation:
        statusPulse 1.2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

.card-login-status.loading {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.card-login-status.loading
.card-login-status-dot {
    background: var(--orange);

    box-shadow:
        0 0 0 5px rgba(245, 158, 11, .14);
}

.card-login-status.success {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.card-login-status.error {
    border-color: #fecaca;
    background: var(--danger-bg);
    color: var(--danger);
}

.card-login-status.error
.card-login-status-dot {
    background: var(--danger);

    box-shadow:
        0 0 0 5px rgba(220, 38, 38, .11);

    animation: none;
}

/* =========================
   KARTLA GÜVENLİ GİRİŞ
========================= */

.secure-login-trigger {
    border: 0;
    font-family: inherit;
    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.secure-login-trigger:hover {
    transform: translateY(-1px);

    background: #bbf7d0;

    box-shadow:
        0 7px 16px rgba(22, 163, 74, .15);
}

.secure-login-trigger:active {
    transform: translateY(0);
}


/* =========================
   KART MODALI
========================= */

body.modal-open {
    overflow: hidden;
}

.card-login-modal[hidden] {
    display: none !important;
}

.card-login-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

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

    padding: 20px;

    background: rgba(15, 34, 24, .62);

    backdrop-filter: blur(7px);
}

.card-login-modal-card {
    width: 100%;
    max-width: 390px;

    position: relative;

    padding: 36px 28px 27px;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 25px;

    background:
        linear-gradient(
            155deg,
            #ffffff,
            #f2fff6
        );

    text-align: center;

    box-shadow:
        0 30px 80px rgba(4, 35, 18, .30);

    animation:
        cardLoginOpen .22s ease-out;
}

@keyframes cardLoginOpen {

    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

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

.card-login-close {
    width: 38px;
    height: 38px;

    position: absolute;
    top: 13px;
    right: 13px;

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

    border: 0;
    border-radius: 12px;

    background: #edf7f0;

    color: #50645a;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.card-login-close:hover {
    background: #dcfce7;
    color: var(--primary-dark);
}


/* =========================
   KART İKONU
========================= */

.card-login-icon {
    width: 104px;
    height: 104px;

    position: relative;

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

    margin: 4px auto 21px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #dcfce7,
            #bbf7d0
        );

    box-shadow:
        0 14px 28px rgba(22, 163, 74, .20);
}

.card-login-card-symbol {
    font-size: 48px;

    animation:
        cardPulse 1.45s ease-in-out infinite;
}

@keyframes cardPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

.card-login-wave {
    position: absolute;
    right: 14px;

    color: var(--primary);

    font-size: 25px;
    font-weight: 800;

    opacity: .35;

    animation:
        cardWave 1.3s ease-in-out infinite;
}

.wave-one {
    right: 16px;
}

.wave-two {
    right: 7px;
    animation-delay: .18s;
}

@keyframes cardWave {

    0%,
    100% {
        opacity: .2;
        transform: scale(.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}


/* =========================
   MODAL METİNLERİ
========================= */

.card-login-modal-card h2 {
    margin-bottom: 9px;

    color: #17231c;

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

    letter-spacing: -.4px;
}

.card-login-modal-card > p {
    max-width: 310px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================
   KART DURUMU
========================= */

.card-login-status {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin: 23px 0 17px;
    padding: 12px 14px;

    border: 1px solid #bbf7d0;
    border-radius: 14px;

    background: #f0fdf4;

    color: var(--primary-dark);

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

.card-login-status-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 5px rgba(22, 163, 74, .12);

    animation:
        statusPulse 1.2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

.card-login-status.loading {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.card-login-status.loading
.card-login-status-dot {
    background: var(--orange);

    box-shadow:
        0 0 0 5px rgba(245, 158, 11, .14);
}

.card-login-status.success {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.card-login-status.error {
    border-color: #fecaca;
    background: var(--danger-bg);
    color: var(--danger);
}

.card-login-status.error
.card-login-status-dot {
    background: var(--danger);

    box-shadow:
        0 0 0 5px rgba(220, 38, 38, .11);

    animation: none;
}


/* =========================
   GİZLİ KART INPUT
========================= */

.card-reader-input {
    width: 1px;
    height: 1px;

    position: fixed;
    left: -9999px;
    bottom: 0;

    opacity: .01;

    border: 0;
    outline: 0;
}


/* =========================
   MODAL İPTAL BUTONU
========================= */

.card-login-cancel {
    width: 100%;
    min-height: 48px;

    padding: 10px 15px;

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

    background: #ffffff;

    color: #50645a;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}

.card-login-cancel:hover {
    border-color: #86efac;

    background: #f0fdf4;

    color: var(--primary-dark);
}


/* =========================
   KART MODALI MOBİL
========================= */

@media (max-width: 560px) {

    .card-login-modal {
        padding: 16px;
    }

    .card-login-modal-card {
        padding:
            34px
            21px
            23px;

        border-radius: 22px;
    }

    .card-login-icon {
        width: 92px;
        height: 92px;
    }

    .card-login-card-symbol {
        font-size: 43px;
    }

    .card-login-modal-card h2 {
        font-size: 22px;
    }
}