/* Göksel Atak — tam ekran giriş sayfası (mobil + masaüstü) */

html:has(.ga-login-shell),
html:has(.ga-login-shell) body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #ffffff !important;
}

.fi-body.fi-panel-admin:has(.ga-login-shell),
.fi-body.fi-panel-teacher:has(.ga-login-shell),
.fi-body.fi-panel-student:has(.ga-login-shell) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff !important;
}

.ga-login-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

.ga-login {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.ga-login__columns {
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.ga-login__visual {
    display: none;
    flex: 1 1 50%;
    min-width: 0;
    min-height: 0;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f8fafc 100%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .ga-login__visual {
        display: block;
    }
}

.ga-login__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ga-login__visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #475569;
}

.ga-login__visual-placeholder-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ga-login__visual-placeholder-hint {
    font-size: 0.875rem;
    line-height: 1.6;
}

.ga-login__visual-placeholder-hint code {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.ga-login__panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    overflow: hidden;
}

.ga-login__form-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.5rem 2rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.ga-login__brand {
    text-align: center;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}

.ga-login__logo {
    height: clamp(5rem, 12vh, 7.5rem);
    width: auto;
    max-width: min(100%, 22rem);
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.ga-login__form .fi-fo-field-wrp {
    margin-bottom: 1.25rem;
}

.ga-login__form .fi-fo-field-wrp-label,
.ga-login__form .fi-fo-field-wrp-label span {
    color: #334155 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

.ga-login__form .fi-input-wrp {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    box-shadow: none !important;
}

.ga-login__form .fi-input {
    color: #0f172a !important;
    font-size: 0.95rem !important;
}

.ga-login__form .fi-input-wrp-suffix .fi-icon-btn {
    color: #64748b !important;
}

.ga-login__forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.ga-login__link {
    color: #2563eb;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.ga-login__link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.ga-login__link--muted {
    cursor: help;
}

.ga-login__form .fi-btn {
    width: 100%;
    justify-content: center;
    border-radius: 0.5rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.ga-login__form .fi-btn:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.ga-login__form .fi-btn .fi-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ga-login__alternatives {
    margin-top: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.ga-login__alternatives-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ga-login__alternatives-list li + li {
    margin-top: 0.5rem;
}

/* Her zaman görünür — grid’in alt satırı, tam genişlik */
.ga-login__copyright {
    grid-row: 2;
    flex-shrink: 0;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 5;
}

@media (max-width: 1023px) {
    .ga-login__panel {
        border-left: none;
    }

    .ga-login__form-wrap {
        max-width: 24rem;
        padding-top: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .ga-login__form-wrap {
        max-width: 28rem;
        padding: 2rem 2.5rem 1.25rem;
    }

    .ga-login__copyright {
        padding: 0.85rem 2rem;
        font-size: 0.8125rem;
    }
}

/* Giriş sayfasında Filament / portal artıkları */
.fi-body:has(.ga-login-shell) .sp-bottom-nav,
.fi-body:has(.ga-login-shell) .sp-bottom-nav-spacer {
    display: none !important;
}

@media (max-height: 700px) {
    .ga-login__form-wrap {
        justify-content: flex-start;
        padding-top: 1rem;
    }

    .ga-login__brand {
        margin-bottom: 1.25rem;
    }

    .ga-login__logo {
        height: clamp(4rem, 10vh, 5.5rem);
    }
}
