/**
 * FisioCloud - Estilos de Autenticação (Premium Design)
 */

:root {
    /* Sophisticated Minimalist Palette */
    --primary: #4338ca;
    --primary-hover: #3730a3;
    --secondary: #6366f1;
    --bg-base: #fcfcfd;
    --card-white: #ffffff;
    --border-soft: #f1f5f9;
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --input-focus: #e0e7ff;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-base);
    min-height: 100vh;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at 10% 20%, rgba(224, 231, 255, 0.4) 0%, rgba(255, 255, 255, 1) 90%);
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    filter: blur(150px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.auth-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: var(--card-white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 0 1px 1px rgba(0, 0, 0, 0.02),
        0 20px 40px -10px rgba(0, 0, 0, 0.05),
        0 10px 20px -5px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

/* ============================================
   BRAND SECTION (Left Side)
   ============================================ */
.auth-brand {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
}

.brand-logo-container {
    margin-bottom: 3.5rem;
}

.login-logo {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
}

.login-logo:hover {
    transform: scale(1.05);
}

.brand-slogan {
    font-size: 1.15rem;
    color: var(--text-body);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 4rem;
}

.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    text-align: left;
}

.feature:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.brand-footer {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   FORM SECTION (Right Side)
   ============================================ */
.auth-form-wrapper {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.auth-form-header {
    margin-bottom: 3rem;
}

.auth-form-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

.auth-form-header p {
    color: var(--text-body);
    font-size: 1rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

/* ============================================
   INPUTS
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper>i:first-child {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.125rem 1rem 1.125rem 3.25rem;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.1);
}

.input-wrapper input:focus+i {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--text-main);
}

/* ============================================
   UTILITIES
   ============================================ */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-wrapper {
        padding: 3rem 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: fadeIn 0.8s ease-out;
}