/**
 * Tela de login — layout split moderno (RepoStock MVP).
 */

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Painel do formulário */
.auth-card {
    flex: 1;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
    background: #fff;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: var(--rs-shadow-lg);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rs-text);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--rs-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.auth-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
}

.auth-form .input-group-text {
    background: var(--rs-bg);
    border-color: var(--rs-border);
    color: var(--rs-text-muted);
}

.auth-form .form-control {
    border-color: var(--rs-border);
}

.auth-form .form-control:focus {
    border-color: var(--rs-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.auth-link {
    color: var(--rs-primary);
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    background: var(--rs-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--rs-radius);
    transition: background 0.15s;
}

.auth-submit:hover {
    background: var(--rs-primary-dark);
}

.auth-demo-hint code {
    font-size: 0.8rem;
    background: var(--rs-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

/* Painel decorativo */
.auth-decoration {
    flex: 1;
    background: linear-gradient(160deg, var(--rs-auth-gradient-start) 0%, var(--rs-auth-gradient-end) 50%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-decoration::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.decoration-content {
    position: relative;
    max-width: 400px;
    color: #fff;
}

.decoration-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.decoration-content p {
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.6;
}

.decoration-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.decoration-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.decoration-features i {
    color: #4ade80;
    font-size: 1.1rem;
}

/* Mobile: esconde painel decorativo */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .auth-decoration {
        display: none;
    }
}
