/* =============================================================================
   Giriş ve Kayıt Ol ekranları — Mobil Modern (docs/mobil-modern.md)
   Önek: grs-. Token'lar mobil-modern.css (.mm-app) dosyasından gelir; burada
   yeni renk tanımlanmaz.
   Telefon: üstte marka siyahı bant + logo, altında üst köşeleri yuvarlak beyaz sayfa.
   Tablet (en az 768px genişlik VE 600px yükseklik): solda marka paneli, sağda form.
   Laptop/masaüstü (en az 1024px VE 600px): panel sola hizalı başlık, yardım satırı ve
   logodaki şeritlerden türetilmiş çizgi dokusuyla dolar.
   Yatay telefon tablet düzenine düşmez; bant küçülür.
   ============================================================================= */

.grs-govde {
    background: var(--mm-siyah);
}

.grs-ekran {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--mm-siyah);
}

/* ---------------------------------------------------------------- marka bandı */
.grs-bant {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 28vh;
    min-height: 28dvh;
    padding: calc(env(safe-area-inset-top) + 32px) calc(env(safe-area-inset-right) + 24px) 40px calc(env(safe-area-inset-left) + 24px);
    color: var(--mm-uzerinde-siyah);
}

.grs-bant-kisa {
    min-height: 0;
    padding-top: calc(env(safe-area-inset-top) + 24px);
    padding-bottom: 32px;
}

.grs-bant-ic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Renkli logo siyah bantta beyaz plaka içinde durur: marka renkleri ve ® korunur. */
.grs-logo-plaka {
    padding: 14px 18px;
    background: var(--mm-yuzey);
    border-radius: var(--mm-radius);
}

.grs-logo {
    display: block;
    width: 140px;
    height: auto;
}

.grs-bant-kisa .grs-logo {
    width: 108px;
}

.grs-bant-metin {
    display: none;
    max-width: 30ch;
    margin: 24px 0 0;
    text-wrap: balance;
    font-size: 16px;
    line-height: 1.5;
    color: var(--mm-uzerinde-siyah-soluk);
}

/* Yalnız laptop/masaüstü panelinde görünenler (aşağıdaki 1024px kuralı) */
.grs-tanitim-baslik,
.grs-bant-alt,
.grs-seritler {
    display: none;
}

.grs-geri {
    position: absolute;
    z-index: 2;
    top: calc(env(safe-area-inset-top) + 12px);
    left: calc(env(safe-area-inset-left) + 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--mm-dokunma);
    height: var(--mm-dokunma);
    color: var(--mm-uzerinde-siyah);
    border-radius: 50%;
    text-decoration: none;
}

.grs-geri:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--mm-uzerinde-siyah-soluk);
}

.grs-geri .mm-ikon {
    width: 24px;
    height: 24px;
}

/* ---------------------------------------------------------------- beyaz sayfa */
.grs-sayfa {
    flex: 1 0 auto;
    padding: 32px calc(env(safe-area-inset-right) + 24px) calc(env(safe-area-inset-bottom) + 32px) calc(env(safe-area-inset-left) + 24px);
    background: var(--mm-yuzey);
    border-radius: var(--mm-radius-sayfa) var(--mm-radius-sayfa) 0 0;
    animation: grs-yuksel 260ms var(--mm-egri) both;
}

.grs-sayfa-ic {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.grs-ust {
    margin: 0 0 24px;
}

.grs-form {
    margin: 0;
}

.grs-onay-satir {
    margin: -4px 0 12px;
}

.grs-kayit-btn {
    margin-top: 8px;
}

.grs-sifre-yardim {
    margin: 8px 0 0;
}

.grs-alt {
    margin: 28px 0 0;
    padding-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mm-metin-ikincil);
    border-top: 1px solid var(--mm-cizgi);
}

.grs-alt .mm-link {
    display: inline-block;
    padding: 4px 0;
}

@keyframes grs-yuksel {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- kayıt sonuç kartı */
.grs-sonuc {
    padding-top: 8px;
}

.grs-sonuc-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 0 20px;
    border-radius: 50%;
}

.grs-sonuc-ikon .mm-ikon {
    width: 28px;
    height: 28px;
}

.grs-sonuc-basari .grs-sonuc-ikon {
    color: var(--mm-basari);
    background: var(--mm-basari-zemin);
}

.grs-sonuc-hata .grs-sonuc-ikon {
    color: var(--mm-marka-metin);
    background: var(--mm-marka-zemin);
}

.grs-sonuc-eylem {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

/* ---------------------------------------------------------------- dar telefon */
@media (max-width: 359px) {
    .grs-sayfa {
        padding-right: calc(env(safe-area-inset-right) + 20px);
        padding-left: calc(env(safe-area-inset-left) + 20px);
    }
}

/* ---------------------------------------------------------------- küçük telefon (iPhone SE vb.): giriş düğmesi ilk ekranda görünsün */
@media (max-height: 700px) {
    .grs-bant {
        min-height: 0;
        padding-top: calc(env(safe-area-inset-top) + 24px);
        padding-bottom: 32px;
    }

    .grs-sayfa {
        padding-top: 28px;
    }

    .grs-ust {
        margin-bottom: 20px;
    }
}

/* ---------------------------------------------------------------- kısa ekran / yatay telefon */
@media (max-height: 560px) {
    .grs-bant {
        min-height: 0;
        padding-top: calc(env(safe-area-inset-top) + 20px);
        padding-bottom: 32px;
    }

    .grs-logo-plaka {
        padding: 10px 14px;
    }

    .grs-logo,
    .grs-bant-kisa .grs-logo {
        width: 100px;
    }

    .grs-geri {
        top: calc(env(safe-area-inset-top) + 4px);
    }
}

/* ---------------------------------------------------------------- tablet: iki sütun */
@media (min-width: 768px) and (min-height: 600px) {
    .grs-ekran {
        flex-direction: row;
    }

    .grs-bant,
    .grs-bant-kisa {
        position: sticky;
        top: 0;
        flex: 0 0 44%;
        align-self: flex-start;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: calc(env(safe-area-inset-top) + 48px) 48px calc(env(safe-area-inset-bottom) + 48px) calc(env(safe-area-inset-left) + 48px);
    }

    .grs-logo-plaka {
        padding: 20px 24px;
    }

    .grs-logo,
    .grs-bant-kisa .grs-logo {
        width: 184px;
    }

    .grs-bant-metin {
        display: block;
    }

    .grs-geri {
        top: calc(env(safe-area-inset-top) + 24px);
        left: calc(env(safe-area-inset-left) + 24px);
    }

    .grs-sayfa {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
        padding: 48px calc(env(safe-area-inset-right) + 48px) calc(env(safe-area-inset-bottom) + 48px) 48px;
        border-radius: var(--mm-radius-sayfa) 0 0 var(--mm-radius-sayfa);
    }

    .mm-app .grs-baslik {
        font-size: 28px;
    }
}

/* ---------------------------------------------------------------- laptop/masaüstü: dolu marka paneli */
@media (min-width: 1024px) and (min-height: 600px) {
    .grs-bant,
    .grs-bant-kisa {
        align-items: stretch;
        justify-content: flex-start;
        overflow: hidden;
        padding: calc(env(safe-area-inset-top) + 48px) 56px calc(env(safe-area-inset-bottom) + 40px) calc(env(safe-area-inset-left) + 56px);
    }

    .grs-bant-ic {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
        text-align: left;
    }

    .grs-bant-kisa .grs-bant-ic {
        padding-top: 56px;
    }

    .grs-logo,
    .grs-bant-kisa .grs-logo {
        width: 152px;
    }

    .grs-logo-plaka {
        padding: 14px 18px;
    }

    .grs-tanitim {
        max-width: 560px;
    }

    .grs-tanitim-baslik {
        display: block;
        max-width: 11em;
        margin: 0;
        font-size: clamp(32px, 2.6vw, 52px);
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -.8px;
        color: var(--mm-uzerinde-siyah);
        text-wrap: balance;
    }

    .grs-bant-metin {
        max-width: 34ch;
        margin-top: 16px;
    }

    .grs-bant-alt {
        display: block;
        font-size: 14px;
        line-height: 1.6;
        color: var(--mm-uzerinde-siyah-soluk);
    }

    .grs-bant-alt p {
        margin: 0;
    }

    .grs-bant-link {
        color: var(--mm-uzerinde-siyah);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
        border-radius: 4px;
    }

    .grs-bant-link:hover,
    .grs-bant-link:focus {
        color: var(--mm-uzerinde-siyah);
    }

    .grs-bant-link:focus-visible {
        outline: 2px solid transparent;
        outline-offset: 2px;
        box-shadow: 0 0 0 3px var(--mm-uzerinde-siyah-soluk);
    }

    /* Logodaki paralel şeritlerden: sağ alttan girip kenardan taşan üç çizgi (dekor) */
    .grs-seritler {
        position: absolute;
        right: -6%;
        bottom: -8%;
        z-index: 0;
        display: block;
        width: 60%;
        max-width: 620px;
        height: auto;
        pointer-events: none;
    }

    .grs-seritler path {
        fill: none;
        stroke: var(--mm-bant-cizgi);
        stroke-width: 12;
    }
}

/* ---------------------------------------------------------------- hareket azaltma */
@media (prefers-reduced-motion: reduce) {
    .grs-sayfa {
        animation: none;
    }
}
