/*
 * LANCHER LOGIN PAGE - Estilos Específicos
 * Importa lancher-base.css para estilos compartilhados
 */

/* ========================================
   LOGIN CONTAINER
   ======================================== */

body.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ========================================
   COLUNA ESQUERDA - FORMULÁRIO
   ======================================== */

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background-color: var(--lancher-white);
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo a {
    display: inline-block;
    transition: var(--transition-fast);
}

.login-logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.login-logo img {
    max-width: 290px;
    height: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    color: var(--lancher-black);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--lancher-text-gray);
    font-weight: 400;
}

/* ========================================
   FORMULÁRIO
   ======================================== */

.login-form {
    width: 100%;
}

.form-group-login {
    margin-bottom: 1.5rem;
}

.form-group-login label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--lancher-black);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.form-control-login {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--lancher-border);
    border-radius: var(--radius-md);
    background-color: var(--lancher-white);
    transition: var(--transition-fast);
    color: var(--lancher-black);
}

.form-control-login:focus {
    outline: none;
    border-color: var(--lancher-red-primary);
    box-shadow: 0 0 0 3px rgba(199, 14, 28, 0.1);
}

.form-control-login::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--lancher-red-primary);
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--lancher-text-gray);
    cursor: pointer;
    margin: 0;
}

/* ========================================
   BOTÃO DE LOGIN
   ======================================== */

.btn-login-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--lancher-white);
    background: var(--lancher-red-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--lancher-red-dark);
}

.btn-login-primary:active {
    transform: translateY(0);
}

.btn-login-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   LINKS E FOOTER DO FORM
   ======================================== */

.login-links {
    text-align: center;
    margin-top: 2rem;
}

.login-links p {
    font-size: 0.875rem;
    color: var(--lancher-text-gray);
    margin-bottom: 0.5rem;
}

.login-links a {
    color: var(--lancher-red-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.login-links a:hover {
    color: var(--lancher-red-dark);
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--lancher-text-gray);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--lancher-border);
}

.divider span {
    padding: 0 1rem;
}

/* ========================================
   COLUNA DIREITA - BACKGROUND
   ======================================== */

.login-background-section {
    flex: 1;
    background: linear-gradient(135deg, var(--lancher-red-primary) 0%, var(--lancher-red-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../Content/front/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.login-background-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    color: var(--lancher-white);
    animation: fadeInUp 0.8s ease-out;
}

.login-background-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.login-background-text {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Padrão decorativo */
.login-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
}

.login-pattern::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--lancher-white);
    top: -150px;
    right: -150px;
}

.login-pattern::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--lancher-white);
    bottom: -200px;
    left: -200px;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    /* Ocultar background em tablets e mobile */
    .login-background-section {
        display: none;
    }

    /* Centralizar formulário ocupando toda a tela */
    .login-form-section {
        flex: 1;
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-form-section {
        padding: 1.5rem 1rem;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-logo img {
        max-width: 220px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.875rem;
    }

    .btn-login-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   DARK MODE - LOGIN PAGE
   ======================================== */

:root[data-theme="dark"] body.login-body,
html[data-theme="dark"] body.login-body {
    background-color: var(--theme-bg-primary);
}

:root[data-theme="dark"] .login-form-section,
html[data-theme="dark"] .login-form-section {
    background-color: var(--theme-bg-primary);
}

:root[data-theme="dark"] .login-title,
html[data-theme="dark"] .login-title {
    color: var(--theme-text-primary);
}

:root[data-theme="dark"] .login-subtitle,
html[data-theme="dark"] .login-subtitle {
    color: var(--theme-text-secondary);
}

:root[data-theme="dark"] .form-group-login label,
html[data-theme="dark"] .form-group-login label {
    color: var(--theme-text-primary);
}

:root[data-theme="dark"] .form-control-login,
html[data-theme="dark"] .form-control-login {
    background-color: var(--theme-input-bg);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

:root[data-theme="dark"] .form-control-login:focus,
html[data-theme="dark"] .form-control-login:focus {
    background-color: var(--theme-bg-elevated);
    border-color: var(--lancher-red-primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

:root[data-theme="dark"] .form-control-login::placeholder,
html[data-theme="dark"] .form-control-login::placeholder {
    color: var(--theme-text-muted);
}

:root[data-theme="dark"] .checkbox-group label,
html[data-theme="dark"] .checkbox-group label {
    color: var(--theme-text-secondary);
}

:root[data-theme="dark"] .login-links p,
html[data-theme="dark"] .login-links p {
    color: var(--theme-text-secondary);
}

:root[data-theme="dark"] .divider,
html[data-theme="dark"] .divider {
    color: var(--theme-text-muted);
}

:root[data-theme="dark"] .divider::before,
:root[data-theme="dark"] .divider::after,
html[data-theme="dark"] .divider::before,
html[data-theme="dark"] .divider::after {
    border-color: var(--theme-border-color);
}

:root[data-theme="dark"] .validation-summary-errors,
html[data-theme="dark"] .validation-summary-errors {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

/* Background section - mantém cores originais no dark mode */
:root[data-theme="dark"] .login-background-section,
html[data-theme="dark"] .login-background-section {
    background: linear-gradient(135deg, var(--lancher-red-primary) 0%, #7F1717 100%);
}

