/* === BANNER LOGIN - DESIGN MODERNO E PROFISSIONAL === */

:root {
    --primary-color: #1300cd;
    --primary-dark: #0d0091;
    --primary-light: #4d3dff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.banner {
    height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
}

.banner-content {
    position: relative;
    background-image: url('../../images/bg-sight.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 0, 205, 0.084) 0%, rgba(12, 0, 145, 0.333) 100%);
}

.banner-login {
    width: 35%;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.banner-login .logo {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.staging-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.welcome {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    border: 1px solid var(--border-color);
}

.welcome h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
}

.welcome .subtitle {
    font-size: 15px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

/* === FORMULÁRIO === */

.form {
    width: 100%;
}

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

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-wrapper.focused {
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    font-size: 15px;
    font-family: "Fira Sans Condensed", sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(19, 0, 205, 0.1);
}

.form-input:hover {
    border-color: #d1d5db;
}

/* === PASSWORD TOGGLE === */

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toggle-password:hover {
    color: var(--primary-color);
    background: rgba(19, 0, 205, 0.05);
}

.toggle-password:active {
    transform: scale(0.95);
}

.toggle-password i {
    font-size: 16px;
}

/* === BOTÃO SUBMIT === */

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Fira Sans Condensed", sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* === MENSAGENS FLASH === */

ul.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
}

ul.flashes li {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul.flashes li i {
    font-size: 16px;
}

ul.flashes li.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

ul.flashes li.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

ul.flashes li.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

ul.flashes li.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* === FOOTER === */

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

.login-footer p {
    font-size: 13px;
    color: var(--text-light);
}

/* === RESPONSIVE === */

@media screen and (max-width: 1200px) {
    .banner-content {
        width: 55%;
    }

    .banner-login {
        width: 45%;
    }

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

    .welcome {
        padding: 32px;
    }
}

@media screen and (max-width: 968px) {
    .banner {
        flex-direction: column;
    }

    .banner-content {
        width: 100%;
        height: 30vh;
        min-height: 200px;
    }

    .banner-login {
        width: 100%;
        height: 70vh;
        overflow-y: auto;
    }

    .login-container {
        max-width: 500px;
    }
}

@media screen and (max-width: 480px) {
    .banner-login {
        padding: 30px 16px;
    }

    .login-container {
        gap: 20px;
    }

    .banner-login .logo {
        width: 160px;
    }

    .welcome {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .welcome h1 {
        font-size: 26px;
    }

    .welcome .subtitle {
        font-size: 14px;
    }

    .form-input {
        padding: 12px 14px 12px 42px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 15px;
    }
}
