/* ============================================================
   CCFMMS — Auth Stylesheet
   Herda variáveis de style.css
   ============================================================ */
@import url('style.css');

/* Override do body para páginas de auth */
body {
    display: block !important;
    background-color: var(--bg-card);
    min-height: 100vh;
}

/* ============================================================
   LAYOUT: Tela Dividida
   ============================================================ */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LADO ESQUERDO: Formulário */
.auth-side-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-card);
    max-width: 50%;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-container header  { text-align: center; width: 100%; }
.auth-container .divider { width: 100%; }
.auth-container form    { width: 100%; }

.auth-container footer {
    text-align: center;
    width: 100%;
    max-width: 80%;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* LADO DIREITO: Visual */
.auth-side-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9)),
        url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.visual-content {
    width: 100%;
    height: 85vh;
    border-radius: 24px;
    border: 1px solid var(--orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.visual-content .logo-hero {
    width: 150px;
    max-width: 60%;
}

.visual-content .title-hero {
    padding: 20px;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -1px;
    word-spacing: -4px;
    text-align: center;
}

.divider-line {
    height: 2px;
    width: 60%;
    margin: 10px auto;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 119, 51, 0.8) 50%,
        transparent
    );
}

/* ============================================================
   HEADER DE AUTH
   ============================================================ */
.auth-header h1 {
    color: var(--navy);
    font-size: 1.7rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* ============================================================
   FORMULÁRIO DE AUTH
   ============================================================ */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #fff;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 119, 51, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.input-field.error {
    border-color: #c00;
}

/* ============================================================
   BOTÕES DE AUTH
   ============================================================ */
.btn-google {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-soft);
    background: #fff;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-google:hover {
    background: #fdfdfd;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background-color: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-auth:hover:not(:disabled) {
    background-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 34, 68, 0.2);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================
   DIVISOR
   ============================================================ */
.divider {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--border-soft);
    width: 100%;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-soft);
}

.divider span {
    padding: 0 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in  { animation: fadeIn  0.3s ease-out; }
.animate-fade-out { animation: fadeOut 0.3s ease-out; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1024px) {
    .auth-side-visual {
        display: none;
    }

    .auth-side-form {
        max-width: 100%;
        justify-content: center;
    }

    .auth-container {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .auth-side-form {
        padding: 20px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }
}
