/* AOA Member Pages - Login & Dashboard */
/* Brand Colors: Blue #00457c, Red #c41230, Charcoal #2d2d2d */

:root {
    --blue: #00457c;
    --blue-light: #e6f0f7;
    --blue-dark: #003562;
    --red: #c41230;
    --red-light: #fef0f2;
    --charcoal: #2d2d2d;
    --grey-100: #fafafa;
    --grey-200: #f0f0f0;
    --grey-300: #e0e0e0;
    --grey-600: #666;
    --white: #ffffff;
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --gold: #d4a012;
    --silver: #9ca3af;
    --green: #2e7d32;
    --green-light: #e8f5e9;
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'GothamPro', sans-serif; 
    color: var(--charcoal); 
    background: var(--grey-100); 
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--blue);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 2rem 0;
    text-align: center;
    color: #fff;
}

.page-header img {
    height: 50px;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Login Content */
.login-content {
    padding: 3rem 0;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Login Form Card */
.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.login-card h2 {
    font-size: 1.35rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.login-card > p {
    color: var(--grey-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input {
    padding: 0.9rem 1rem;
    border: 2px solid var(--grey-300);
    border-radius: 10px;
    font-family: 'GothamPro', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,69,124,0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.5;
    font-weight: 400;
}

.checkbox-group label a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.btn-login {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-family: 'GothamPro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #a80f28;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196,18,48,0.25);
}

.btn-login:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey-200);
}

.form-footer a {
    color: var(--grey-600);
    font-size: 0.85rem;
    text-decoration: none;
}

.form-footer a:hover {
    color: var(--blue);
}

.join-link {
    color: var(--red) !important;
    font-weight: 600;
}

/* Info Column */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Notice Card */
.notice-card {
    background: var(--amber-light);
    border-left: 4px solid var(--amber);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
}

.notice-card h3 {
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-card h3 svg {
    width: 20px;
    height: 20px;
    color: var(--amber);
    flex-shrink: 0;
}

.notice-card p {
    font-size: 0.9rem;
    color: var(--grey-600);
    line-height: 1.6;
}

/* News Card (Login Page) */
.news-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.news-card h3 {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-200);
}

.news-card h3 svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
    flex-shrink: 0;
}

/* Benefactors Section */
.benefactors-section {
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--grey-200);
}

.benefactors-group {
    margin-bottom: 2rem;
}

.benefactors-group:last-child {
    margin-bottom: 0;
}

.benefactors-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.benefactors-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.benefactors-header.gold h3 {
    color: var(--gold);
}

.benefactors-header.silver h3 {
    color: var(--silver);
}

.star {
    font-size: 1rem;
}

.benefactor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.benefactor-logo {
    height: 70px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.benefactor-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.silver-logos .benefactor-logo {
    height: 55px;
    max-width: 110px;
}

/* Login Footer */
.login-footer {
    background: var(--charcoal);
    padding: 1.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.footer-links a {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========================================
   DASHBOARD PAGE STYLES
   ======================================== */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 2.5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header-left p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-badge {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-logout {
    background: var(--red);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #a80f28;
    text-decoration: none;
}

/* Account Summary Strip */
.account-strip {
    background: var(--charcoal);
    padding: 1.25rem 0;
}

.account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.account-item {
    color: #fff;
}

.account-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.15rem;
}

.account-item .value {
    font-size: 1rem;
    font-weight: 600;
}

/* CHANGED: Expiration highlight is now white instead of red */
.account-item .value.highlight {
    color: #fff;
}

.account-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-sm-white {
    background: #fff;
    color: var(--charcoal);
}

.btn-sm-white:hover {
    background: var(--grey-200);
    text-decoration: none;
}

.btn-sm-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-sm-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    text-decoration: none;
}

/* Main Dashboard Content */
.dashboard-content {
    padding: 2.5rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Section Cards */
.section-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.section-card:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-200);
}

.section-header h2 {
    font-size: 1.15rem;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-header h2 svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
    flex-shrink: 0;
}

.section-header a {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.section-header a:hover {
    text-decoration: underline;
}

/* Platform Cards */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.platform-card {
    background: var(--grey-100);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.platform-card:hover {
    background: var(--blue-light);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.platform-icon svg {
    width: 24px;
    height: 24px;
}

.platform-icon.blue { background: var(--blue); }
.platform-icon.blue svg { color: #fff; }
.platform-icon.green { background: var(--green); }
.platform-icon.green svg { color: #fff; }

.platform-card h3 {
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}

.platform-card p {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.btn-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--blue);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-platform:hover {
    background: var(--blue-dark);
    text-decoration: none;
}

.btn-platform svg {
    width: 14px;
    height: 14px;
}

/* Lab Schedule Notice */
.lab-notice {
    background: var(--amber-light);
    border-left: 4px solid var(--amber);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.lab-notice h4 {
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lab-notice h4 svg {
    width: 18px;
    height: 18px;
    color: var(--amber);
    flex-shrink: 0;
}

.lab-notice p {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.5;
}

/* Marketing Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--blue);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.tool-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Alpaca Owners Guide */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.guide-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--grey-100);
    color: var(--charcoal);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.guide-btn:hover {
    background: var(--blue-light);
    color: var(--blue);
    text-decoration: none;
}

.guide-btn svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    flex-shrink: 0;
}

/* Member Resources */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--grey-100);
    border-radius: 8px;
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: var(--blue-light);
    color: var(--blue);
    text-decoration: none;
}

.resource-link svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    flex-shrink: 0;
}

/* Membership Add-Ons */
.addons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--grey-100);
    border-radius: 10px;
}

.addon-info h4 {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 0.15rem;
}

.addon-info p {
    font-size: 0.8rem;
    color: var(--grey-600);
}

.btn-addon {
    background: var(--blue);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-addon:hover {
    background: var(--blue-dark);
    text-decoration: none;
}

/* Benefit Card */
.benefit-card {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
}

.benefit-card h4 {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.btn-benefit {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-benefit:hover {
    background: #256b28;
    text-decoration: none;
}

/* News List (shared between login and dashboard) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--grey-200);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    flex-shrink: 0;
    width: 55px;
    text-align: center;
    padding: 0.5rem;
    background: var(--blue-light);
    border-radius: 8px;
}

.news-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.news-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
}

.news-content h4 {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.news-content h4 a {
    color: inherit;
    text-decoration: none;
}

.news-content h4 a:hover {
    color: var(--blue);
}

.news-content p {
    font-size: 0.8rem;
    color: var(--grey-600);
    line-height: 1.5;
}

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

@media (max-width: 900px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .account-details {
        gap: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    .login-content,
    .dashboard-content {
        padding: 2rem 0;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .benefactor-logos {
        gap: 1.5rem;
    }
    
    .benefactor-logo {
        height: 60px;
        max-width: 120px;
    }
    
    .silver-logos .benefactor-logo {
        height: 50px;
        max-width: 100px;
    }
    
    .account-info {
        flex-direction: column;
        text-align: center;
    }
    
    .account-details {
        justify-content: center;
        gap: 1rem;
    }
    
    .account-actions {
        justify-content: center;
    }
    
    .addon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-addon {
        width: 100%;
        text-align: center;
    }
    
    .page-header h1,
    .header-left h1 {
        font-size: 1.5rem;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-login,
    .btn-platform,
    .btn-addon,
    .tool-btn {
        border: 2px solid currentColor;
    }
}
