/* ============================================
   EFCOL ADMIN - AUTENTICACAO
   Layout moderno no padrao Academy
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #b21f2a url('/assets/images/pattern.png');
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px;
}

.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #b21f2a 0%, #8b1820 100%);
    color: #ffffff;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(246, 185, 100, 0.2), transparent 48%);
    pointer-events: none;
}

.auth-branding::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.35;
    pointer-events: none;
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-logo {
    max-width: 190px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.auth-branding h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.auth-branding p {
    font-size: 16px;
    opacity: 0.92;
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-features {
    display: grid;
    gap: 16px;
    margin-top: 44px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.auth-feature i {
    font-size: 22px;
    opacity: 0.95;
}

.auth-feature span {
    font-size: 14px;
    font-weight: 500;
}

.auth-form-side {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.auth-form-header p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

.auth-form-group {
    margin-bottom: 22px;
}

.auth-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.auth-form-label i {
    font-size: 16px;
    color: #b21f2a;
}

.auth-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.auth-form-input:focus {
    border-color: #b21f2a;
    box-shadow: 0 0 0 3px rgba(178, 31, 42, 0.1);
}

.auth-form-input::placeholder {
    color: #a0aec0;
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: all 0.3s ease;
}

.auth-password-toggle:hover {
    color: #b21f2a;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.auth-link {
    font-size: 14px;
    color: #b21f2a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #8b1820;
    text-decoration: underline;
}

.auth-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #b21f2a 0%, #8b1820 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(178, 31, 42, 0.3);
}

.auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(178, 31, 42, 0.4);
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-btn-submit i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.auth-btn-submit:hover i {
    transform: translateX(4px);
}

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

@keyframes authFadeInSoft {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-form-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.auth-form-footer p {
    font-size: 14px;
    color: #718096;
}

.auth-form-footer .auth-link {
    margin-left: 4px;
}

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        max-width: 520px;
    }

    .auth-branding {
        padding: 40px 30px;
        min-height: 290px;
    }

    .auth-logo {
        max-width: 150px;
    }

    .auth-branding h1 {
        font-size: 24px;
    }

    .auth-branding p {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .auth-features {
        display: none;
    }

    .auth-form-side {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth-body {
        display: block;
        min-height: 100dvh;
        background: #b21f2a url('/assets/images/pattern.png');
    }

    .auth-container {
        margin: 0;
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .auth-branding {
        padding: calc(20px + env(safe-area-inset-top, 0px)) 22px 22px;
        min-height: 32vh;
        align-items: flex-end;
        background: linear-gradient(140deg, rgba(178,31,42,.96) 0%, rgba(110,18,24,.92) 100%);
        animation: authFadeInSoft .42s ease-out both;
    }

    .auth-branding-content {
        animation: authFadeInUp .5s cubic-bezier(.22,1,.36,1) .05s both;
    }

    .auth-branding::after {
        content: '';
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        top: -110px;
        right: -80px;
        background: radial-gradient(circle, rgba(246,185,100,.28) 0%, rgba(246,185,100,0) 70%);
        pointer-events: none;
    }

    .auth-logo {
        max-width: 112px;
        margin-bottom: 14px;
    }

    .auth-branding h1 {
        font-size: 21px;
        margin-bottom: 8px;
    }

    .auth-branding p {
        margin-bottom: 0;
        font-size: 13px;
        opacity: 0.92;
    }

    .auth-form-side {
        flex: 1;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
        background: #ffffff;
        border-radius: 22px 22px 0 0;
        margin-top: -14px;
        position: relative;
        z-index: 2;
        animation: authFadeInUp .56s cubic-bezier(.22,1,.36,1) .08s both;
    }

    .auth-form-side::before {
        content: '';
        width: 54px;
        height: 5px;
        border-radius: 999px;
        background: #e2e8f0;
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .auth-form-container {
        max-width: none;
        animation: authFadeInUp .58s cubic-bezier(.22,1,.36,1) .13s both;
    }

    .auth-form-header {
        margin-bottom: 24px;
    }

    .auth-form-header h2 {
        font-size: 26px;
    }

    .auth-form-group {
        margin-bottom: 20px;
    }

    .auth-form-input {
        padding: 13px 16px;
        border-radius: 10px;
    }

    .auth-form-options {
        margin-bottom: 24px;
    }

    .auth-btn-submit {
        border-radius: 12px;
        padding: 15px 22px;
        box-shadow: 0 8px 18px rgba(178, 31, 42, 0.28);
        animation: authFadeInUp .62s cubic-bezier(.22,1,.36,1) .2s both;
    }

    .auth-form-footer {
        margin-top: 22px;
        padding-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-branding,
    .auth-branding-content,
    .auth-form-side,
    .auth-form-container,
    .auth-btn-submit {
        animation: none !important;
    }

    .auth-btn-submit,
    .auth-feature,
    .auth-password-toggle {
        transition: none !important;
    }
}
