/* ============================================================================
   LOGIN PAGE — ALINT BI — TEMA AZUL ALINT
   ============================================================================ */

:root {
    --white: #ffffff;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0F1E3D 0%, #1E3A8A 55%, #2563EB 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-content {
    display: flex;
    width: 95%;
    max-width: 1100px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
}

.login-brand {
    text-align: center;
    margin-bottom: 60px;
}

.brand-icon {
    display: inline-flex;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-brand h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--white);
}

.brand-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 22px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 15px;
    font-weight: 500;
}

.login-footer-left {
    text-align: center;
    opacity: 0.8;
    font-size: 13px;
    margin-top: 40px;
}

.login-footer-left p {
    margin: 4px 0;
}

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

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

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.form-header p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    background-color: var(--white);
}

.form-group input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: color 0.2s;
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: var(--gray-700);
    user-select: none;
}

.btn-login {
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-login:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

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

.login-footer {
    text-align: center;
    margin-top: 28px;
}

.login-footer p {
    font-size: 12px;
    color: var(--gray-400);
    margin: 0;
}

.alert-login {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #FEF2F2;
    color: #991B1B;
    font-size: 14px;
}

@media (max-width: 991px) {
    .login-content {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-brand h1 {
        font-size: 28px;
    }

    .login-features {
        display: none;
    }

    .login-footer-left {
        margin-top: 20px;
    }

    .login-right {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-content {
        border-radius: 16px;
    }

    .btn-login {
        padding: 13px 24px;
    }
}
