/* =====================
   RESET & BASE
===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #c0392b;
    --primary-light: #e74c3c;
    --bg: #f9f9f9;
    --white: #ffffff;
    --text: #222222;
    --text-light: #666666;
    --border: #eeeeee;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   NAVBAR
===================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 65px;
    box-shadow: var(--shadow);
}

.nav-logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover { background: var(--bg); color: var(--primary); }

.btn-register {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
}

.btn-register:hover { background: var(--primary-light) !important; }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* =====================
   SLIDESHOW
===================== */
.slideshow {
    margin-top: 65px;
    position: relative;
    height: 520px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(192,57,43,0.75), rgba(0,0,0,0.55));
}

.slide.active { opacity: 1; }

.slide-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 700px;
}

.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 28px;
    opacity: 0.92;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.slide-btn:hover { background: rgba(255,255,255,0.35); }
.slide-btn.prev { left: 20px; }
.slide-btn.next { right: 20px; }

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active { background: white; }

/* =====================
   SEZIONI
===================== */
.section { padding: 70px 0; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 50px; height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* =====================
   FILTRO CATEGORIE
===================== */
.cat-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.cat-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all 0.2s;
    background: var(--white);
}

.cat-btn:hover, .cat-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* =====================
   GRIGLIA ARTICOLI
===================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-img img { transform: scale(1.05); }

.article-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.article-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-body { padding: 20px; }

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.article-meta i { margin-right: 4px; color: var(--primary); }

.btn-leggi {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: letter-spacing 0.2s;
}

.btn-leggi:hover { letter-spacing: 1px; }

/* =====================
   FOOTER
===================== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.8);
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 16px; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-light); }

/* =====================
   AUTH (login/register)
===================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0eeee 100%);
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-header p { color: var(--text-light); font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group label i { margin-right: 6px; color: var(--primary); }

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: var(--white);
}

.input-eye { position: relative; }
.input-eye input { padding-right: 45px; }

.eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.eye-toggle:hover { color: var(--primary); }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

.alert-success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

/* =====================
   FORM ROW
===================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =====================
   PAGE HERO
===================== */
.page-hero {
    margin-top: 65px;
    background: linear-gradient(135deg, var(--primary), #922b21);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.page-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-hero-content p { font-size: 1.05rem; opacity: 0.9; }

/* =====================
   SEARCH BAR
===================== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 12px 20px;
    margin-bottom: 35px;
    max-width: 400px;
}

.search-bar i { color: var(--text-light); }

.search-bar input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
    background: transparent;
}

/* =====================
   SQUADRE GRID
===================== */
.squadre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.squadra-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.squadra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.squadra-logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    padding: 20px;
}

.squadra-logo img { max-height: 100px; max-width: 100px; object-fit: contain; }

.logo-placeholder { font-size: 3.5rem; color: var(--primary); opacity: 0.3; }

.squadra-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.squadra-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

.squadra-body p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 14px;
    flex: 1;
}

.squadra-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 14px; }
.squadra-meta i { color: var(--primary); margin-right: 4px; }

.no-results {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 40px;
}

/* =====================
   FILTRI BAR
===================== */
.filtri-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    align-items: center;
}

.filtro-select select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filtro-select select:focus { border-color: var(--primary); }

/* =====================
   GIOCATORI GRID
===================== */
.giocatori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.giocatore-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.giocatore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.giocatore-foto {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.giocatore-foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-placeholder { font-size: 4rem; color: #ccc; }

.ruolo-badge {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 3px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.giocatore-body { padding: 16px; }
.giocatore-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }

.giocatore-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.giocatore-info i { color: var(--primary); margin-right: 5px; width: 14px; }

/* =====================
   ARTICOLO
===================== */
.articolo-wrapper { margin-top: 65px; padding: 50px 0; }

.articolo-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumb a { color: var(--primary); }
.articolo-header { margin-bottom: 28px; }
.articolo-header h1 { font-size: 2rem; font-weight: 800; margin: 12px 0; line-height: 1.3; }

.articolo-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.articolo-meta i { color: var(--primary); margin-right: 5px; }
.articolo-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.articolo-img img { width: 100%; max-height: 420px; object-fit: cover; }

.articolo-contenuto {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 50px;
}

.commenti-section h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.form-commento { margin-bottom: 30px; }

.form-commento textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
    font-family: inherit;
}

.form-commento textarea:focus { border-color: var(--primary); }

.login-prompt {
    background: var(--bg);
    padding: 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.login-prompt a { color: var(--primary); font-weight: 600; }

.commento {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.commento-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.commento-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.commento-header span { color: var(--text-light); }
.commento-body p { font-size: 0.95rem; }
.no-commenti { color: var(--text-light); font-style: italic; }

.sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.sidebar-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.sidebar-box h4 i { color: var(--primary); margin-right: 6px; }

.correlato-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.correlato-item:hover { color: var(--primary); }
.correlato-cat { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.correlato-item p { font-size: 0.88rem; font-weight: 600; margin: 4px 0; line-height: 1.4; }
.correlato-item small { color: var(--text-light); font-size: 0.78rem; }

/* =====================
   PROFILO
===================== */
.profilo-avatar-grande {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.5);
}

.profilo-wrapper { padding: 50px 0; }

.profilo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.profilo-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.profilo-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.profilo-box h3 i { color: var(--primary); margin-right: 8px; }

.profilo-commento {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.profilo-commento-titolo {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.profilo-commento p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 4px; }
.profilo-commento small { font-size: 0.78rem; color: var(--text-light); }

/* =====================
   SQUADRA DETTAGLIO
===================== */
.squadra-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.stat-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.88rem; color: var(--text-light); }
.stat-label i { margin-right: 5px; }

.rosa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.rosa-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.rosa-card:hover { transform: translateY(-3px); }

.rosa-foto {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ccc;
    flex-shrink: 0;
    overflow: hidden;
}

.rosa-foto img { width: 100%; height: 100%; object-fit: cover; }
.rosa-info { display: flex; flex-direction: column; gap: 4px; }
.rosa-info strong { font-size: 0.9rem; }
.rosa-info small { font-size: 0.78rem; color: var(--text-light); }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 65px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    .slide-content h1 { font-size: 1.8rem; }
    .slideshow { height: 380px; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer .container { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .articolo-layout { grid-template-columns: 1fr; }
    .articolo-header h1 { font-size: 1.5rem; }
    .profilo-layout { grid-template-columns: 1fr; }
    .squadra-stats { grid-template-columns: 1fr; }
    .rosa-grid { grid-template-columns: 1fr; }
}
/* =====================
   AUTH PAGES
===================== */
.auth-page { background: var(--white); }

.auth-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin-top: 65px;
}

/* SINISTRA - branding rosso */
.auth-branding {
    background: linear-gradient(160deg, var(--primary) 0%, #7b241c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    color: white;
}

.auth-branding-inner { max-width: 340px; }

.auth-brand-logo {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: block;
}

.auth-branding-inner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.auth-branding-inner p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-brand-divider {
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    margin-bottom: 28px;
}

.auth-brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-features li {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand-features i {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* DESTRA - form bianco */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: var(--white);
    overflow-y: auto;
}

.auth-form-container { width: 100%; max-width: 420px; }

.auth-form-header { margin-bottom: 36px; }

.auth-form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* INPUT CON ICONA */
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon > i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-icon input,
.input-icon select {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.input-icon input:focus,
.input-icon select:focus {
    border-color: var(--primary);
    background: var(--white);
}

.input-eye .eye-toggle {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.input-eye .eye-toggle:hover { color: var(--primary); }

/* FORM GROUP */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BOTTONE */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* SWITCH LINK */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}

.auth-switch a:hover { text-decoration: underline; }

/* FORM ROW */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ALERT */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

.alert-success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

/* RESPONSIVE AUTH */
@media (max-width: 768px) {
    .auth-page-wrapper { grid-template-columns: 1fr; }
    .auth-branding { display: none; }
    .auth-form-side { padding: 40px 24px; }
    .form-row { grid-template-columns: 1fr; }
}