/**
 * SimplesMotel - Auth Login Styles
 * Estilos para a tela de login
 *
 * @version 1.0.0
 * @date 2026-01-11
 */

/* ============================================
   CSS Variables - Paleta SimplesMotel
   ============================================ */
:root {
    --sm-purple-dark: #2D1548;
    --sm-purple: #5E2B97;
    --sm-red: #E53935;
    --sm-red-hover: #D32F2F;
    --sm-red-active: #C62828;
    --sm-orange: #FF6D3A;
    --sm-orange-light: #FF8A5C;
    --sm-dark-bg: #1a1a1f;
    --sm-dark-input: #2a2a2f;
    --sm-dark-border: #3a3a3f;
    --sm-text-muted: #a6b0cf;
    --sm-text-secondary: #6a7187;
}

/* ============================================
   Layout Principal
   ============================================ */
.auth-full-bg {
    background: linear-gradient(135deg, var(--sm-purple-dark) 0%, var(--sm-purple) 50%, var(--sm-red) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-full-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ============================================
   Formas Decorativas Animadas
   ============================================ */
.auth-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--sm-orange), var(--sm-red));
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--sm-purple), var(--sm-purple-dark));
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--sm-orange);
    bottom: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--sm-purple);
    bottom: 10%;
    right: 20%;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   Conteudo da Area Esquerda
   ============================================ */
.auth-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.auth-brand-text {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-brand-text p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.auth-features {
    max-width: 400px;
    margin: 0 auto;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.auth-feature-item i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--sm-orange);
}

.auth-feature-item h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.auth-feature-item p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Area do Formulario (Direita)
   ============================================ */
.auth-form-area {
    background: var(--sm-dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.auth-logo-box {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-box img {
    max-height: 80px;
    width: auto;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title h4 {
    color: var(--sm-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-title p {
    color: var(--sm-text-muted);
    margin: 0;
}

/* ============================================
   Formulario de Login
   ============================================ */
.auth-form .form-label {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    background: var(--sm-dark-input);
    border: 1px solid var(--sm-dark-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.auth-form .form-control::placeholder {
    color: var(--sm-text-secondary);
}

.auth-form .form-control:focus {
    border-color: var(--sm-purple);
    box-shadow: 0 0 0 3px rgba(94, 43, 151, 0.3);
    background: var(--sm-dark-input);
}

.auth-form .form-check-label {
    color: var(--sm-text-muted);
}

.auth-form .form-check-input {
    background-color: var(--sm-dark-input);
    border-color: var(--sm-dark-border);
}

.auth-form .form-check-input:checked {
    background-color: var(--sm-purple);
    border-color: var(--sm-purple);
}

/* ============================================
   Botao de Login
   ============================================ */
.btn-login {
    background: var(--sm-red);
    border: 2px solid var(--sm-orange);
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(255, 109, 58, 0.4);
    cursor: pointer;
}

.btn-login:hover {
    background: var(--sm-red-hover);
    border-color: var(--sm-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 109, 58, 0.5);
}

.btn-login:active {
    background: var(--sm-red-active);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 109, 58, 0.3);
}

.btn-login:focus {
    box-shadow:
        0 0 0 3px rgba(255, 109, 58, 0.4),
        0 4px 16px rgba(255, 109, 58, 0.5);
}

.btn-login:disabled {
    background: #8E8E93;
    border-color: #8E8E93;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.btn-login .loading-spinner {
    display: none !important;
}

.btn-login .loading-spinner.show {
    display: inline-block !important;
}

/* ============================================
   Rodape
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--sm-text-secondary);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--sm-orange);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--sm-orange-light);
    text-decoration: underline;
}

/* ============================================
   Mensagens de Erro
   ============================================ */
.invalid-feedback {
    font-size: 0.85rem;
}

/* ============================================
   Responsivo
   ============================================ */
@media (max-width: 991.98px) {
    .auth-full-bg {
        min-height: 30vh;
    }

    .auth-content {
        min-height: 30vh;
        padding: 2rem 1rem;
    }

    .auth-brand-text p {
        font-size: 1.25rem;
    }

    .auth-features {
        display: none;
    }

    .auth-form-area {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .auth-form-area {
        padding: 1.5rem 1rem;
    }

    .btn-login {
        padding: 1rem 1.5rem;
        font-size: 1.0625rem;
    }
}
