/**
 * 13-custom-pages.css
 * Custom Category & Author page styles
 * Uses existing design tokens — zero impact on other pages
 */

/* ==========================================================================
   CATEGORY PAGE
   ========================================================================== */

/* — Hero Banner — */
.cat-hero {
    background: linear-gradient(135deg, var(--adc-bg) 0%, var(--adc-brand-soft) 50%, var(--adc-bg) 100%);
    border-bottom: 2px solid var(--adc-brand-mid);
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}
.cat-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(110,159,68,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.cat-hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(110,159,68,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cat-hero-inner {
    position: relative;
    z-index: 1;
}

.cat-hero-label {
    display: inline-block;
    background: var(--adc-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.cat-hero-title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    font-weight: 900;
    color: var(--adc-text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.cat-hero-desc {
    font-size: var(--adc-text-lg);
    color: var(--adc-text-muted);
    max-width: 600px;
    line-height: 1.7;
    margin: 0 0 20px;
}
.cat-hero-desc p { margin: 0; }

.cat-hero-stats {
    display: flex;
    gap: 20px;
}
.cat-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    padding: 6px 16px;
    border-radius: var(--adc-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--adc-text-muted);
    box-shadow: var(--adc-shadow-xs);
}
.cat-stat svg { color: var(--adc-brand); }

/* — Sub-categories — */
.cat-sub-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--adc-border);
    position: relative;
    z-index: 1;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    border-radius: var(--adc-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--adc-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--adc-shadow-xs);
}
.cat-pill:hover {
    background: var(--adc-brand);
    border-color: var(--adc-brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110,159,68,0.3);
}
.cat-pill-count {
    background: var(--adc-brand-soft);
    color: var(--adc-brand-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--adc-radius-pill);
    transition: all 0.3s;
}
.cat-pill:hover .cat-pill-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* — Featured Post — */
.cat-featured {
    padding: 40px 0;
    background: var(--adc-bg);
}

.cat-featured-card {
    border-radius: var(--adc-radius-lg);
    overflow: hidden;
    box-shadow: var(--adc-shadow-md);
    border: 1px solid var(--adc-border);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.cat-featured-card:hover {
    box-shadow: 0 12px 40px rgba(28,31,24,0.12);
    transform: translateY(-3px);
}

.cat-featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    color: inherit;
    min-height: 360px;
}

.cat-featured-thumb {
    position: relative;
    overflow: hidden;
}
.cat-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}
.cat-featured-card:hover .cat-featured-thumb img {
    transform: scale(1.05);
}
.cat-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.02), transparent);
}

.cat-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--adc-bg);
}

.cat-featured-badge {
    display: inline-block;
    background: var(--adc-brand-soft);
    color: var(--adc-brand-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.cat-featured-title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--adc-text);
    margin: 0 0 16px;
}

.cat-featured-excerpt {
    font-size: var(--adc-text-md);
    color: var(--adc-text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.cat-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--adc-text-faint);
}
.cat-meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--adc-brand-mid);
}
.cat-meta-author { font-weight: 600; color: var(--adc-text-muted); }
.cat-meta-sep { color: var(--adc-border-mid); }

@media (max-width: 768px) {
    .cat-featured-link {
        grid-template-columns: 1fr;
    }
    .cat-featured-thumb { min-height: 250px; }
    .cat-featured-content { padding: 25px; }
}

/* — Posts Grid — */
.cat-posts-section {
    padding: 40px 0 60px;
    background: var(--adc-bg-alt);
}

.cat-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.cat-posts-heading {
    font-size: var(--adc-text-2xl);
    font-weight: 800;
    color: var(--adc-text);
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}
.cat-posts-heading::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 3px;
    background: var(--adc-brand);
    border-radius: 2px;
}

.cat-posts-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-label {
    font-size: 14px;
    color: var(--adc-text-faint);
    font-weight: 500;
}
.sort-btn {
    padding: 6px 16px;
    border: 1px solid var(--adc-border);
    border-radius: var(--adc-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--adc-text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    background: var(--adc-bg);
}
.sort-btn:hover {
    border-color: var(--adc-brand-mid);
    color: var(--adc-brand-dark);
}
.sort-btn.active {
    background: var(--adc-brand);
    border-color: var(--adc-brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(110,159,68,0.3);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
@media (max-width: 991px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    border-radius: var(--adc-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover {
    border-color: var(--adc-brand-mid);
    box-shadow: 0 8px 25px rgba(28,31,24,0.1);
    transform: translateY(-4px);
}

.cat-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cat-card-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--adc-bg-alt);
}
.cat-card-thumb img, .cat-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-placeholder {
    background: linear-gradient(135deg, var(--adc-bg-alt), var(--adc-bg-hover));
}
.cat-card:hover .cat-card-thumb img {
    transform: scale(1.06);
}

.cat-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cat-card-title {
    font-size: var(--adc-text-lg);
    font-weight: 700;
    line-height: 1.4;
    color: var(--adc-text);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.cat-card:hover .cat-card-title {
    color: var(--adc-brand-dark);
}

.cat-card-excerpt {
    font-size: var(--adc-text-sm);
    color: var(--adc-text-muted);
    line-height: 1.6;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-meta {
    font-size: 13px;
    color: var(--adc-text-faint);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cat-card-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cat-card-comments svg { color: var(--adc-brand-mid); }

/* — Pagination — */
.cat-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.cat-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.cat-pagination li a,
.cat-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--adc-border);
    border-radius: var(--adc-radius-lg);
    font-size: 15px;
    font-weight: 600;
    color: var(--adc-text-muted);
    text-decoration: none;
    background: var(--adc-bg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 6px;
}
.cat-pagination li a:hover {
    border-color: var(--adc-brand);
    color: var(--adc-brand-dark);
    background: var(--adc-brand-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110,159,68,0.15);
}
.cat-pagination li span.current {
    background: var(--adc-brand);
    border-color: var(--adc-brand);
    color: #fff;
    box-shadow: 0 3px 10px rgba(110,159,68,0.35);
}
.cat-pagination svg { width: 16px; height: 16px; }

/* — Empty State — */
.cat-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--adc-text-muted);
}
.cat-empty h3 {
    font-size: var(--adc-text-xl);
    margin: 20px 0 10px;
    color: var(--adc-text);
}
.cat-empty p { font-size: var(--adc-text-md); }
.cat-empty a { color: var(--adc-brand-dark); font-weight: 600; }


/* ==========================================================================
   AUTHOR PAGE
   ========================================================================== */

/* — Author Hero — */
.author-hero {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
}

.author-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--adc-brand-soft) 0%, var(--adc-bg) 40%, var(--adc-bg-alt) 100%);
    z-index: 0;
}
.author-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(110,159,68,0.08) 0%, transparent 60%);
}
.author-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(110,159,68,0.05) 0%, transparent 60%);
}

/* — Profile Card — */
.author-profile-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--adc-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(28,31,24,0.08);
}

/* — Avatar — */
.author-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.author-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 0 4px var(--adc-brand), 0 10px 30px rgba(110,159,68,0.2);
    object-fit: cover;
    transition: transform 0.4s ease;
}
.author-avatar-img:hover {
    transform: scale(1.06);
}
.author-avatar-badge {
    position: absolute;
    bottom: 5px; right: 5px;
    width: 30px; height: 30px;
    background: var(--adc-brand);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* — Name & Bio — */
.author-name {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 900;
    color: var(--adc-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.author-bio {
    font-size: var(--adc-text-md);
    color: var(--adc-text-muted);
    line-height: 1.7;
    margin: 0 0 25px;
    max-width: 450px;
    margin-inline: auto;
}

/* — Stats — */
.author-stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}
.author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.author-stat-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--adc-brand-dark);
    line-height: 1;
}
.author-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--adc-text-faint);
}

/* — Social Links — */
.author-social-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    color: var(--adc-text-muted);
    text-decoration: none;
    font-size: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--adc-shadow-xs);
}
.author-social-link svg { width: 18px; height: 18px; }
.author-social-link:hover {
    background: var(--adc-brand);
    border-color: var(--adc-brand);
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 5px 15px rgba(110,159,68,0.35);
}

/* — Author Posts Section — */
.author-posts-section {
    padding: 50px 0 60px;
    background: var(--adc-bg-alt);
}

.author-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.author-posts-heading {
    font-size: var(--adc-text-2xl);
    font-weight: 800;
    color: var(--adc-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-posts-heading svg { color: var(--adc-brand); }
.author-posts-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--adc-text-faint);
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    padding: 5px 14px;
    border-radius: var(--adc-radius-pill);
}

/* — Author Posts Grid — */
.author-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.author-grid .author-card.featured {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .author-grid { grid-template-columns: repeat(2, 1fr); }
    .author-grid .author-card.featured { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .author-grid { grid-template-columns: 1fr; }
}

.author-card {
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    border-radius: var(--adc-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.author-card:hover {
    border-color: var(--adc-brand-mid);
    box-shadow: 0 8px 25px rgba(28,31,24,0.1);
    transform: translateY(-4px);
}

.author-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.author-card.featured .author-card-link {
    flex-direction: row;
}
@media (max-width: 768px) {
    .author-card.featured .author-card-link { flex-direction: column; }
}

.author-card-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--adc-bg-alt);
}
.author-card.featured .author-card-thumb {
    padding-top: 0;
    width: 55%;
    min-height: 320px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .author-card.featured .author-card-thumb {
        width: 100%;
        padding-top: 56.25%;
        min-height: auto;
    }
}

.author-card-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.author-card:hover .author-card-thumb img {
    transform: scale(1.06);
}

.author-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.author-card:hover .author-card-overlay { opacity: 1; }

.author-card-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--adc-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.author-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.author-card.featured .author-card-body {
    justify-content: center;
    padding: 35px;
}

.author-card-title {
    font-size: var(--adc-text-lg);
    font-weight: 700;
    line-height: 1.4;
    color: var(--adc-text);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.author-card.featured .author-card-title {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    -webkit-line-clamp: 3;
}
.author-card:hover .author-card-title { color: var(--adc-brand-dark); }

.author-card-excerpt {
    font-size: var(--adc-text-sm);
    color: var(--adc-text-muted);
    line-height: 1.6;
    margin: 0 0 15px;
}

.author-card-meta {
    font-size: 13px;
    color: var(--adc-text-faint);
    margin-top: auto;
    display: flex;
    gap: 6px;
}

/* ==========================================================================
   WRITER AUTH PAGE (Login & Register)
   ========================================================================== */

.adc-auth-page {
    background: linear-gradient(160deg, var(--adc-brand-soft) 0%, var(--adc-bg) 40%, var(--adc-bg-alt) 100%);
    min-height: 80vh;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.adc-auth-page::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(110,159,68,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 950px;
    margin: 0 auto;
    background: var(--adc-bg);
    border: 1px solid var(--adc-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28,31,24,0.1);
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

/* — Auth Card (Forms Side) — */
.auth-card {
    padding: 40px;
}
@media (max-width: 480px) {
    .auth-card { padding: 25px; }
}

/* — Tabs — */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: var(--adc-bg-alt);
    border-radius: var(--adc-radius-lg);
    padding: 4px;
    border: 1px solid var(--adc-border);
}
.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    font-family: var(--site-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--adc-text-muted);
    cursor: pointer;
    border-radius: var(--adc-radius);
    transition: all 0.3s ease;
}
.auth-tab.active {
    background: var(--adc-brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(110,159,68,0.3);
}
.auth-tab:not(.active):hover {
    color: var(--adc-text);
}

/* — Message — */
.auth-message {
    padding: 12px 18px;
    border-radius: var(--adc-radius);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}
.auth-message.success {
    background: var(--adc-brand-soft);
    color: var(--adc-brand-dark);
    border: 1px solid var(--adc-brand-mid);
}
.auth-message.error {
    background: var(--adc-alert-soft);
    color: var(--adc-alert);
    border: 1px solid #f5c6cb;
}

/* — Fields — */
.auth-field {
    margin-bottom: 20px;
}
.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--adc-text);
    margin-bottom: 8px;
}
.auth-field .required { color: var(--adc-alert); }

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--adc-border);
    border-radius: var(--adc-radius-lg);
    background: var(--adc-bg);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-input-wrap:focus-within {
    border-color: var(--adc-brand);
    box-shadow: 0 0 0 3px rgba(110,159,68,0.15);
}
.auth-input-wrap svg {
    color: var(--adc-text-faint);
    flex-shrink: 0;
}
.auth-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    font-family: var(--site-font);
    font-size: 15px;
    color: var(--adc-text);
    outline: none;
}
.auth-input-wrap input::placeholder {
    color: var(--adc-text-faint);
}

.pass-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--adc-text-faint);
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}
.pass-toggle:hover { color: var(--adc-brand); }

/* — Password Strength — */
.pass-strength {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    height: 20px;
}
.pass-strength.weak { color: #e74c3c; }
.pass-strength.fair { color: #f39c12; }
.pass-strength.good { color: #27ae60; }
.pass-strength.strong { color: var(--adc-brand-dark); }

/* — Role Selector — */
.auth-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .auth-role-selector { grid-template-columns: 1fr; }
}

.role-option input { display: none; }

.role-card {
    padding: 18px;
    border: 2px solid var(--adc-border);
    border-radius: var(--adc-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.role-option input:checked + .role-card {
    border-color: var(--adc-brand);
    background: var(--adc-brand-soft);
    box-shadow: 0 0 0 3px rgba(110,159,68,0.15);
}
.role-card:hover {
    border-color: var(--adc-brand-mid);
}

.role-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: var(--adc-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adc-brand);
    transition: all 0.3s;
}
.role-option input:checked + .role-card .role-icon {
    background: var(--adc-brand);
    color: #fff;
}

.role-info strong {
    display: block;
    font-size: 15px;
    color: var(--adc-text);
    margin-bottom: 4px;
}
.role-info span {
    font-size: 12px;
    color: var(--adc-text-muted);
    line-height: 1.4;
}

/* — Options Row — */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 14px;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--adc-text-muted);
}
.auth-checkbox input {
    accent-color: var(--adc-brand);
    width: 16px; height: 16px;
}
.auth-forgot {
    color: var(--adc-brand-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-forgot:hover { color: var(--adc-brand); }

/* — Submit Button — */
.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--adc-radius-lg);
    background: var(--adc-brand);
    color: #fff;
    font-family: var(--site-font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-submit:hover:not(:disabled) {
    background: var(--adc-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(110,159,68,0.35);
}
.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.auth-btn-loading svg {
    animation: auth-spin 1s linear infinite;
}
@keyframes auth-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* — Decorative Side — */
.auth-side {
    background: linear-gradient(160deg, var(--adc-brand) 0%, var(--adc-brand-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    top: -50%; left: -30%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
@media (max-width: 768px) {
    .auth-side { display: none; }
}

.auth-side-content {
    position: relative;
    z-index: 1;
}
.auth-side-content h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    font-weight: 900;
    margin: 0 0 15px;
    line-height: 1.3;
}
.auth-side-content p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin: 0 0 30px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}
.auth-feature svg {
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    padding: 4px;
    width: 28px; height: 28px;
}
