/* Panel personel girişi — mobil (app.mealboard.app giriş tasarımı) */

@media (max-width: 768px) {
    body.login-body {
        display: block;
        overflow: auto;
        overflow-x: hidden;
        background:
            radial-gradient(ellipse at top right, rgba(0, 123, 255, 0.14) 0%, transparent 50%),
            radial-gradient(ellipse at bottom left, rgba(0, 86, 179, 0.08) 0%, transparent 48%),
            linear-gradient(165deg, #eef4fc 0%, #f7f9fc 48%, #eef2f7 100%);
        -webkit-font-smoothing: antialiased;
    }

    .login-container {
        flex-direction: column;
        max-width: 440px;
        margin: 0 auto;
        min-height: 100dvh;
        min-height: 100vh;
        padding:
            max(12px, env(safe-area-inset-top))
            max(20px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
        box-sizing: border-box;
    }

    /* Masaüstü yan logo paneli gizlenir */
    .logo-section {
        display: none !important;
    }

    .login-mobile-logo {
        display: block;
        max-width: min(280px, 72vw);
        max-height: 160px;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 8px auto 16px;
    }

    .form-section {
        flex: 1 1 auto;
        width: 100%;
        padding: 0;
        background: transparent;
        align-items: stretch;
        justify-content: flex-start;
        position: static;
    }

    .form-wrapper {
        max-width: none;
        width: 100%;
        background: #fff;
        border-radius: 20px;
        padding: 28px 24px 24px;
        box-shadow:
            0 4px 6px rgba(15, 23, 42, 0.04),
            0 18px 40px rgba(15, 23, 42, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.85);
    }

    .form-header {
        margin-bottom: 20px;
        text-align: center;
    }

    .form-header h1 {
        font-size: 1.35rem;
        font-weight: 700;
        color: #1e293b;
        letter-spacing: -0.02em;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #64748b;
        margin-bottom: 6px;
    }

    .login-form .form-control {
        background: #fff;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 13px 14px;
        padding-right: 44px;
        font-size: 1rem;
        color: #212529;
        min-height: 48px;
    }

    .login-form .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    }

    .password-toggle {
        color: #94a3b8;
    }

    .login-submit {
        margin-top: 6px;
        border-radius: 12px;
        padding: 14px;
        min-height: 48px;
        font-size: 1.02rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        background-color: #007bff;
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.28);
        transition: transform 0.15s ease, background-color 0.15s ease;
    }

    .login-submit:hover,
    .login-submit:active {
        background-color: #0069d9;
        color: #fff;
        transform: translateY(-1px);
    }

    .login-alert {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 0.88rem;
        font-weight: 500;
        margin-bottom: 16px;
        text-align: center;
    }

    .admin-link {
        margin-top: 22px;
        padding-top: 0;
        border-top: none;
    }

    .admin-link a {
        font-weight: 600;
        font-size: 0.95rem;
        color: #007bff;
    }

    .copyright {
        position: static;
        display: block;
        text-align: center;
        color: #64748b;
        font-size: 0.75rem;
        margin-top: 20px;
        opacity: 0.85;
        right: auto;
        bottom: auto;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .login-mobile-logo {
        max-height: 120px;
        margin-bottom: 10px;
    }

    .form-wrapper {
        padding: 22px 20px 20px;
        border-radius: 16px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .copyright {
        margin-top: 12px;
    }
}

@media (max-width: 768px) and (max-height: 560px) {
    .login-mobile-logo {
        max-height: 96px;
        margin-bottom: 6px;
    }
}
