/* ============================================================
   APPLE ENTERPRISE LOGIN — v3.0 (Refinamento Premium)
============================================================ */

/* ============================================================
   FUNDO ANIMADO PREMIUM (macOS/iOS style)
============================================================ */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;

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

    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, sans-serif;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #0d1117, #202531, #11141c);
    background-size: 320% 320%;
    animation: gradientShift 16s ease infinite;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Claro */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f5f7fa, #ffffff, #ecf1f6);
        background-size: 250% 250%;
        animation: gradientShiftLight 16s ease infinite;
    }

    @keyframes gradientShiftLight {
        0%   { background-position: 0% 50%; }
        50%  { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
}

/* ============================================================
   CONTAINER PRINCIPAL (Glass duplo com profundidade real)
============================================================ */
.login-box {
    width: 420px;
    padding: 44px 40px;
    border-radius: 22px;

    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(26px) brightness(1.1);
    border: 1px solid rgba(255,255,255,0.22);

    box-shadow:
        0 24px 48px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.12) inset;

    text-align: center;
    animation: fadeIn 0.5s ease;
}

@media (prefers-color-scheme: light) {
    .login-box {
        background: rgba(255,255,255,0.65);
        border: 1px solid rgba(0,0,0,0.10);

        box-shadow:
            0 24px 48px rgba(0,0,0,0.08),
            0 0 0 1px rgba(255,255,255,0.6) inset;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TÍTULOS
============================================================ */
.glow-title {
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 6px 0;
    color: white;
    text-shadow: 0 3px 8px rgba(0,122,255,0.45);
}

@media (prefers-color-scheme: light) {
    .glow-title {
        color: #111827;
        text-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
}

.login-subtitle {
    font-size: 14px;
    margin-bottom: 26px;
    color: rgba(255,255,255,0.7);
}

@media (prefers-color-scheme: light) {
    .login-subtitle {
        color: rgba(0,0,0,0.55);
    }
}

/* ============================================================
   INPUTS (Estilo Apple ID — refinados e impecáveis)
============================================================ */
.login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    display: block;

    padding: 12px 14px 12px 42px;
    border-radius: 12px;

    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;

    font-size: 15px;
    transition: 0.2s ease;

    /* profundidade Apple */
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.30),
        0 0 0 1px rgba(255,255,255,0.10) inset;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.012);
}

.input-group input:focus {
    background: rgba(255,255,255,0.22);
    border-color: #3b82f6;

    box-shadow:
        0 0 12px rgba(59,130,246,0.45),
        0 2px 8px rgba(0,0,0,0.28);
}

@media (prefers-color-scheme: light) {
    .input-group input {
        background: rgba(255,255,255,0.85);
        border: 1px solid rgba(0,0,0,0.18);
        color: #0f172a;

        box-shadow:
            0 1px 4px rgba(0,0,0,0.10),
            0 0 0 1px rgba(255,255,255,0.9) inset;
    }

    .input-group input:focus {
        background: rgba(255,255,255,0.95);
        border-color: #007aff;

        box-shadow:
            0 0 8px rgba(0,122,255,0.25),
            0 2px 6px rgba(0,0,0,0.12);
    }
}

/* ícones */
.input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 17px;
    opacity: 0.75;
    color: white;
}

@media (prefers-color-scheme: light) {
    .input-icon { color: rgba(0,0,0,0.50); }
}

/* ============================================================
   BOTÃO PRINCIPAL (iOS Blue Button)
============================================================ */
.login-btn {
    width: 100%;
    padding: 12px 16px;
    margin-top: 4px;

    border-radius: 12px;
    border: none;

    background: linear-gradient(90deg, #007aff, #0051ff);
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.25s ease;

    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}

.login-btn:hover {
    filter: brightness(1.14);
    box-shadow:
        0 0 18px rgba(0,122,255,0.55),
        0 6px 18px rgba(0,0,0,0.22);
}

/* ============================================================
   LINKS
============================================================ */
.login-footer-links {
    margin-top: 18px;
}

.login-footer-links a {
    color: #6bb6ff;
    text-decoration: none;
    font-size: 14px;
}

.login-footer-links a:hover {
    text-decoration: underline;
}

/* ============================================================
   MENSAGENS
============================================================ */
.system-message.error {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 18px;

    background: rgba(255,0,0,0.16);
    border: 1px solid rgba(255,0,0,0.32);
    color: #fca5a5;
}

@media (prefers-color-scheme: light) {
    .system-message.error {
        background: rgba(255,0,0,0.12);
        border: 1px solid rgba(255,0,0,0.30);
        color: #dc2626;
    }
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 460px) {
    .login-box {
        width: 90%;
        padding: 34px 24px;
    }
}