/* ═══════════════════════════════════════════════════════════════
   ROCEN HOMESTEADY — AUTH.CSS
   Auth page styles
   ═══════════════════════════════════════════════════════════════

   TABLE OF CONTENTS
   ────────────────
   1.  Container & Card
   2.  Header
   3.  Auth Tabs
   4.  Form
   5.  Buttons
   6.  Messages
   7.  Auth Info
   8.  Nav User
   9.  Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   1. CONTAINER & CARD
   ═══════════════════════════════════════════════════════════════ */

.auth-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid #3d5a3d;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
}


/* ═══════════════════════════════════════════════════════════════
   2. HEADER
   ═══════════════════════════════════════════════════════════════ */

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.auth-title {
    color: var(--cream);
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.8rem;
    margin: 0 0 0.3rem 0;
}

.auth-subtitle {
    color: var(--cream-dim);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   3. AUTH TABS
   ═══════════════════════════════════════════════════════════════ */

.auth-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    background: rgba(30, 51, 30, 0.5);
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid #2d4a2d;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--cream-dim);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-tab:hover {
    background: var(--bg-card-hover);
    color: var(--cream);
}

.auth-tab.active {
    background: var(--green-dark);
    color: var(--cream);
    border-color: var(--green-leaf);
}


/* ═══════════════════════════════════════════════════════════════
   4. FORM
   ═══════════════════════════════════════════════════════════════ */

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    color: var(--cream-dim);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-deep);
    color: var(--cream);
    border: 1px solid #3d5a3d;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: var(--cream-dim);
    opacity: 0.5;
}

.form-group input:focus {
    border-color: var(--green-leaf);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--amber);
}


/* ═══════════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn_auth {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-login {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: 1px solid var(--green-leaf);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

.btn-register {
    background: linear-gradient(135deg, #1565C0, #42A5F5);
    color: white;
    border: 1px solid #42A5F5;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.25);
}

.btn-register:hover:not(:disabled) {
    background: linear-gradient(135deg, #42A5F5, #64B5F6);
    box-shadow: 0 4px 16px rgba(66, 165, 245, 0.4);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════
   6. MESSAGES
   ═══════════════════════════════════════════════════════════════ */

.auth-message {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.5rem 0;
    font-family: 'Inter', system-ui, sans-serif;
}

.auth-message.error {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.auth-message.success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #66BB6A;
}


/* ═══════════════════════════════════════════════════════════════
   7. AUTH INFO
   ═══════════════════════════════════════════════════════════════ */

.auth-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2d4a2d;
}

.auth-info p {
    color: var(--cream-dim);
    font-size: 0.8rem;
    margin: 0.3rem 0;
    line-height: 1.5;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   8. NAV USER
   ═══════════════════════════════════════════════════════════════ */

.nav-user {
    color: var(--cream);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
}

.nav-logout {
    color: var(--cream-dim);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border: 1px solid #3d5a3d;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-logout:hover {
    color: #ff5252;
    border-color: rgba(255, 82, 82, 0.5);
    background: rgba(255, 82, 82, 0.08);
}


/* ═══════════════════════════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .auth-card { padding: 1.5rem; }
    .auth-title { font-size: 1.5rem; }
    .auth-icon { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .auth-container { margin: 1rem auto; padding: 0 0.5rem; }
    .auth-card { padding: 1rem; border-radius: 12px; }
    .auth-tabs { flex-direction: column; }
}
