/* 
  Modern Auth Styles - Entreparágrafos
  Minimalist, premium, and integrated with the main design system.
*/

:root {
    --auth-bg: #FFFFFF;
    --auth-text: #333333;
    --auth-accent: #1F6672;
    --auth-muted: #B0B0B0;
    --auth-border: #E2E8F0;
    --auth-radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text);
}

.auth-hero {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(13, 59, 71, 0.9), rgba(31, 102, 114, 0.95)),
        url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=1200&auto=format&fit=crop&q=80') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.auth-hero::after {
    content: '¶';
    position: absolute;
    bottom: -2rem;
    right: 2rem;
    font-family: 'Lora', serif;
    font-size: 25rem;
    opacity: 0.05;
    pointer-events: none;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.hero-logo img {
    height: 40px;
    width: auto;
}

.hero-bottom h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-bottom p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 400px;
    margin-bottom: 2rem;
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
}

.auth-form-wrapper {
    width: min(600px, 100%);
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.05);
}

.auth-inner {
    width: 100%;
    max-width: 360px;
}

.theme-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-accent);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: rgba(31, 102, 114, 0.05);
}

.form-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    text-decoration: none;
    color: var(--auth-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-logo img {
    height: 35px;
    width: auto;
}

.auth-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: var(--auth-accent);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.auth-subtitle {
    color: var(--auth-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--auth-accent);
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: #FAFAFA;
    color: var(--auth-text);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(31, 102, 114, 0.1);
    background: #fff;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.text-btn {
    background: none;
    border: none;
    color: var(--auth-accent);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--auth-accent);
    color: #fff;
    border: none;
    border-radius: var(--auth-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #0d3b47;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 59, 71, 0.2);
}

.btn-google {
    width: 100%;
    padding: 0.9rem;
    background: #fff;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-google:hover {
    background: #F8F8F8;
    border-color: #ccc;
}

.auth-divider {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    color: var(--auth-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.error-msg {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

/* Media Queries */
@media (min-width: 1024px) {
    body {
        flex-direction: row;
        overflow: hidden;
    }

    .auth-hero {
        flex: 1.2;
        height: 100vh;
        padding: 4rem;
        justify-content: center;
    }

    .auth-form-wrapper {
        flex: 1;
        height: 100vh;
        overflow-y: auto;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.05);
    }

    .hero-bottom h1 {
        font-size: 3.5rem;
    }

    .hero-logo img {
        height: 50px;
    }
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .auth-hero {
        padding: 3rem 2rem;
        min-height: 40vh;
    }

    .auth-form-wrapper {
        width: 100%;
        padding: 3rem 2rem;
    }

    .hero-bottom h1 {
        font-size: 2.5rem;
    }
}

/* Dark Mode Adaptation */
body.dark-mode {
    --auth-bg: #0d1117;
    --auth-text: #c9d1d9;
    --auth-border: #30363d;
}

body.dark-mode .auth-form-wrapper {
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
}

body.dark-mode .input-group input {
    background: #161b22;
}

body.dark-mode .btn-google {
    background: #161b22;
    color: #c9d1d9;
}

body.dark-mode .btn-google:hover {
    background: #21262d;
}