/**
 * Helik Dashboard & Auth Consolidated Styles
 * ============================================
 * This file contains all shared styles for the dashboard and authentication pages.
 * It consolidates styles from dashboard/index.peb.html and auth/login.peb.html
 * Last Updated: 2024
 */

/* ============================================================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================================================ */
:root {
    /* Color Palette */
    --primary-color: #3273dc;
    --primary-dark: #485fc7;
    --secondary-color: #667eea;
    --tertiary-color: #764ba2;
    
    /* Semantic Colors - IELTS Skills */
    --writing-color: #209cee;
    --reading-color: #48c774;
    --listening-color: #ff3860;
    --speaking-color: #ffdd57;
    --speaking-text-color: #333;
    
    /* Status Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #209cee;
    
    /* Neutral Colors */
    --neutral-text: #425a78;
    --neutral-muted: #6f6f6f;
    --neutral-light: #b5b5b5;
    --neutral-border: #e8e8e8;
    --neutral-line: #dee2e6;
    --neutral-bg-light: #f8f9fa;
    --neutral-bg-lighter: #f8f9ff;
    --neutral-bg-lighter2: #f0f1f5;
    
    /* Shadow System */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 6px 20px rgba(50, 115, 220, 0.2);
    --shadow-primary-lg: 0 12px 32px rgba(50, 115, 220, 0.35);
    
    /* Transitions & Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 50%;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* ============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInShort {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   AUTHENTICATION PAGE STYLES (Login)
   ============================================================================ */

.login-container {
    animation: fadeIn 0.6s ease-in-out;
    width: 100%;
    max-width: 550px;
    padding: 0 var(--spacing-md);
    min-width: 350px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.6s ease-out;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    animation: slideUp 0.6s ease-out 0.1s both;
    min-width: 0;
}

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

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--neutral-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--neutral-bg-light);
    transition: var(--transition-smooth);
    color: var(--neutral-text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

.form-group input::placeholder {
    color: var(--neutral-light);
}

.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-light);
    pointer-events: none;
    font-size: 1.1rem;
}

.input-icon input {
    padding-left: 2.75rem;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

.submit-button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(50, 115, 220, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.btn-quick-action {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-quick-action:active {
    transform: translateY(0px);
}

.btn-quick-action.writing {
    background-color: var(--writing-color);
    color: white;
}

.btn-quick-action.reading {
    background-color: var(--reading-color);
    color: white;
}

.btn-quick-action.listening {
    background-color: var(--listening-color);
    color: white;
}

.btn-quick-action.speaking {
    background-color: var(--speaking-color);
    color: var(--speaking-text-color);
}

.btn-quick-action i {
    font-size: 0.9rem;
}

/* ============================================================================
   SOCIAL LOGIN & DIVIDER
   ============================================================================ */

.social-login {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.social-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--neutral-border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-text);
    box-sizing: border-box;
    overflow: hidden;
}

.social-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.social-button:hover {
    border-color: var(--primary-color);
    background: var(--neutral-bg-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-button img {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

@media (min-width: 641px) {
    .social-login {
        flex-direction: row;
    }

    .social-button {
        flex: 1;
        min-width: 0;
        max-width: 50%;
    }
}

.divider-or {
    position: relative;
    z-index: 1;
    width: 100%;
    border-top: 1px solid var(--neutral-line);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.divider-or .text {
    position: absolute;
    background: #fff;
    width: 3rem;
    text-align: center;
    top: -12px;
    left: calc(50% - 1.5rem);
    z-index: 2;
    color: var(--neutral-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================================================
   NOTIFICATION & MESSAGES
   ============================================================================ */

.notification {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    animation: slideDown 0.4s ease-out;
    border-left: 4px solid;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification.is-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left-color: var(--reading-color);
}

.notification.is-danger {
    background: #ffebee;
    color: var(--danger-color);
    border-left-color: var(--listening-color);
}

.notification .delete {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    padding: 0;
}

.notification .delete:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   FOOTER LINKS & AUTHENTICATION NAVIGATION
   ============================================================================ */

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.register-link {
    flex: 1;
}

.register-link a {
    display: block;
    text-align: center;
    padding: 0.875rem;
    background: var(--neutral-bg-lighter);
    color: var(--primary-color);
    border: 1.5px solid var(--neutral-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.register-link a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.forgot-password a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

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

.main-content {
    animation: fadeInShort 0.4s ease-in-out;
}

/* Score Display Components */
.score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.score-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border: 3px solid;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #fff;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.score-circle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.score-circle.overall {
    width: 140px;
    height: 140px;
    font-size: 2.5rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    font-weight: 900;
}

.score-circle.overall:hover {
    box-shadow: var(--shadow-primary-lg);
}

.score-circle.writing {
    border-color: var(--writing-color);
    color: var(--writing-color);
}

.score-circle.reading {
    border-color: var(--reading-color);
    color: var(--reading-color);
}

.score-circle.listening {
    border-color: var(--listening-color);
    color: var(--listening-color);
}

.score-circle.speaking {
    border-color: var(--speaking-color);
    color: var(--speaking-text-color);
}

/* Card Styling */
.box {
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-radius: var(--radius-lg);
}

.box:hover {
    box-shadow: var(--shadow-lg);
}

.overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.overall-score-card {
    min-height: 350px;
    background: linear-gradient(135deg, #ffffff 0%, var(--neutral-bg-lighter) 100%);
}

.card {
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    border: none;
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--neutral-bg-lighter) 0%, #ffffff 100%);
    border-bottom: 2px solid var(--neutral-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-header-title {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Progress Bars */
.progress-bar-container {
    margin: 1rem 0 0.75rem 0;
}

.progress {
    height: 8px !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.progress::-webkit-progress-bar {
    background-color: #e8e8e8;
    border-radius: var(--radius-sm);
}

.progress::-webkit-progress-value {
    border-radius: var(--radius-sm);
    transition: width 1s ease-in-out;
}

/* Skill Indicators */
.skill-indicator {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--neutral-bg-light);
    transition: var(--transition-smooth);
}

.skill-indicator:hover {
    transform: translateX(4px);
    background-color: var(--neutral-bg-lighter2);
}

.skill-indicator.strong {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
}

.skill-indicator.weak {
    background-color: #ffebee;
    border-left: 4px solid var(--danger-color);
}

.study-time-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Charts & Data Visualization */
.chart-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dailyStudyChart {
    width: 100%;
    height: 220px;
}

.bar-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    align-items: end;
    width: 100%;
    height: 180px;
}

.bar {
    background: linear-gradient(180deg, #6aa6ff 0%, var(--primary-color) 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    transition: var(--transition-smooth);
}

.bar::after {
    content: attr(data-min);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .75rem;
    color: #6b7280;
}

.bar:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bar-goal {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 206, 86, .95);
    top: var(--goalY);
}

.x-labels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    margin-top: 6px;
    font-size: .75rem;
    color: #6b7280;
}

.y-grid {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 40px;
    pointer-events: none;
}

.y-grid .line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #eef0f3;
}

/* Activity Timeline */
.activity-item {
    border-left: 3px solid #e9ecef;
    padding-left: 1rem;
    margin-bottom: 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.activity-item:hover {
    border-left-color: var(--primary-color);
    background-color: #f9fafb;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.activity-item:hover::before {
    transform: scale(1.3);
}

.activity-item.writing::before {
    background-color: var(--writing-color);
}

.activity-item.reading::before {
    background-color: var(--reading-color);
}

.activity-item.listening::before {
    background-color: var(--listening-color);
}

/* Section & Metric Cards */
.section-title {
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.metric-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.band-score-indicator {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
    transition: var(--transition-smooth);
}

.band-score-indicator:hover {
    transform: scale(1.05);
}

.band-score-indicator.is-danger {
    background-color: var(--danger-color);
    color: white;
}

.band-score-indicator.is-warning {
    background-color: var(--warning-color);
    color: black;
}

.band-score-indicator.is-primary {
    background-color: var(--primary-color);
    color: white;
}

.band-score-indicator.is-info {
    background-color: var(--info-color);
    color: white;
}

.band-score-indicator.is-success {
    background-color: var(--success-color);
    color: white;
}

/* Quick Action Buttons Container */
.quick-action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Icon Enhancement */
.icon.is-large {
    transition: var(--transition-smooth);
}

.overview-card:hover .icon.is-large {
    transform: scale(1.1) rotate(-5deg);
}

/* Skill Score Cards Container */
.skill-score-card {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.skill-score-card:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-score-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-score-card:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-score-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Dashboard Header */
.level {
    align-items: center;
    margin-bottom: 2rem;
}

.level-left .title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ============================================================================
   VOCABULARY REPORT SPECIFIC STYLES
   ============================================================================ */

/* Main content animation */
.main-content {
    animation: fadeInShort 0.4s ease-in-out;
}

/* KPI Cards - Enhanced */
.kpi-card {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    position: relative;
}

.kpi-card:nth-child(1) { animation-delay: 0.1s; }
.kpi-card:nth-child(2) { animation-delay: 0.2s; }
.kpi-card:nth-child(3) { animation-delay: 0.3s; }
.kpi-card:nth-child(4) { animation-delay: 0.4s; }

.kpi-card .heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.kpi-card .title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), #5a9df5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* KPI Card with status indicator */
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), #5a9df5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover::before {
    opacity: 1;
}

/* Status indicators for each KPI */
.kpi-card.total::before { background: linear-gradient(180deg, #3273dc, #5a9df5); }
.kpi-card.known::before { background: linear-gradient(180deg, #48c774, #6dd785); }
.kpi-card.learning::before { background: linear-gradient(180deg, #ffdd57, #ffec8a); }
.kpi-card.new::before { background: linear-gradient(180deg, #209cee, #4db8f5); }

/* Chart Cards */
.chart-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Retention Rate Card */
.retention-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    text-align: center;
    padding: 2rem 1.5rem;
}

.retention-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.retention-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Table Enhancements */
.table-container {
    overflow-x: auto;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead tr {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
    border-bottom: 2px solid #e8e8e8;
}

.table thead th {
    padding: 1rem !important;
    font-weight: 700;
    color: #374151;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition-smooth);
}

.table tbody tr:hover {
    background-color: #f9fafb;
    transform: scale(1.01);
}

.table td {
    padding: 1rem !important;
    vertical-align: middle;
}

.mistake-term {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
}

.mistake-accuracy {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.85rem;
}

.mistake-accuracy.high {
    background-color: #dcfce7;
    color: #166534;
}

.mistake-accuracy.medium {
    background-color: #fed7aa;
    color: #92400e;
}

.mistake-accuracy.low {
    background-color: #fecaca;
    color: #991b1b;
}

.mistake-note {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

/* Quick Action Buttons */
.quick-action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-practice-area {
    flex: 1;
    min-width: 140px;
    padding: 0.7rem 1.2rem !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-practice-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-practice-area:active {
    transform: translateY(0px);
}

.btn-practice-area.weak {
    background-color: var(--danger-color);
    color: white;
}

.btn-practice-area.medium {
    background-color: var(--warning-color);
    color: #333;
}

.btn-practice-area.all {
    background-color: var(--primary-color);
    color: white;
}

.btn-practice-area i {
    font-size: 0.95rem;
}

/* Dashboard Header */
.level {
    align-items: center;
    margin-bottom: 2rem;
}

.level-left .title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.level-right .button {
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.level-right .button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Card Enhancement */
.card {
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    border: none;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-content {
    padding: 1.5rem;
}

/* ============================================================================
   ACCOUNT & PROFILE STYLES
   ============================================================================ */

.is-danger {
    color: red;
    font-style: italic;
}

.avatar {
    border-radius: 999px;
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
}

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

@media (max-width: 640px) {
    .login-card {
        padding: 1.75rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .social-button {
        font-size: 0.85rem;
        padding: 0.7rem 0.875rem;
    }

    .social-button img {
        width: 18px;
        height: 18px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .register-link {
        width: 100%;
    }

    .card-header {
        padding: 1rem;
    }

    .card-content {
        padding: 1rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.has-text-centered {
    text-align: center !important;
}

.has-text-grey {
    color: #7a7a7a !important;
}

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mb-10 { margin-bottom: 3rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }