/*
 * KonjacHub - Authentication CSS
 * Design inspirado em OMIQ
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tokens herdados de variables.css. Aliases locais mantidos para
   compatibilidade com nomes originais. */
:root {
    --text-dark: #1e293b;
    --border-color: var(--border-subtle, #e2e8f0);
}

body {
    font-family: var(--font-family-base);
    background: linear-gradient(135deg, #f3e8f7 0%, #faf5fc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ========================================
   BACKGROUND DECORATIVO
   ======================================== */

.bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.decoration-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #7f2595, #9a1f7e);
    top: -200px;
    left: -200px;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #7f2595, #a855f7);
    bottom: -150px;
    left: 10%;
}

.decoration-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #9a1f7e, #c084fc);
    top: 10%;
    right: -100px;
}

.decoration-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #6a1f7d, #8b5cf6);
    bottom: -100px;
    right: -150px;
}

/* ========================================
   AUTH CONTAINER
   ======================================== */

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: var(--card-padding-lg);
    box-shadow: var(--card-shadow-hover);
    border: var(--card-border);
    position: relative;
}

/* ========================================
   HEADER
   ======================================== */

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.brand-logo {
    font-family: 'Mulish', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-purple);
    margin-bottom: 24px;
}

.auth-title {
    font-family: 'Mulish', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========================================
   FORM
   ======================================== */

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(127, 37, 149, 0.25);
}

.form-input:focus-visible {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(127, 37, 149, 0.45);
}

.form-input::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-icon.password-toggle {
    cursor: pointer;
    pointer-events: auto;
}

.input-icon.password-toggle:hover {
    color: var(--primary-purple);
}

.form-input:focus + .input-icon {
    color: var(--primary-purple);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: var(--primary-purple);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family-base);
    margin-top: 24px;
}

.btn-primary:hover {
    background: var(--primary-purple-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary .material-symbols-outlined {
    font-size: 20px;
}

/* ========================================
   FOOTER
   ======================================== */

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.link-primary {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-primary:hover {
    color: var(--primary-purple-hover);
    text-decoration: underline;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 576px) {
    .auth-card {
        padding: var(--space-8) var(--space-6);
    }

    .brand-logo {
        font-size: 28px;
    }

    .auth-title {
        font-size: 20px;
    }

    .bg-decoration {
        opacity: 0.08;
    }
}
