/* Base Styles & Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(20, 28, 48, 0.6);
    --bg-card-hover: rgba(28, 38, 65, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.35);
    --secondary: #4facfe;
    --accent-teal: #10b981;
    --accent-pink: #f43f5e;
    --accent-yellow: #fbbf24;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-neon: 0 0 20px rgba(0, 242, 254, 0.15);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs for Premium Look */
body::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0) 70%);
    top: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulseOrb 12s infinite alternate ease-in-out;
}

body::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, rgba(244, 63, 94, 0) 70%);
    bottom: -150px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    animation: pulseOrb 18s infinite alternate-reverse ease-in-out;
}

@keyframes pulseOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.15); }
}

/* Layout Structure */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: rgba(10, 16, 30, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-normal);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.nav-item a i {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.nav-item.active a {
    color: var(--text-main);
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: inset 0 0 12px rgba(0, 242, 254, 0.05);
}

.nav-item.active a i {
    color: var(--primary);
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

.nav-item a:hover:not(.active a) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    transition: var(--transition-normal);
}

/* Page Section Animations */
.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.page-section.active {
    display: block;
}

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

/* Typography & Layout Headers */
.section-header {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Grid & Cards System */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.blue { background: rgba(79, 172, 254, 0.15); color: var(--secondary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-teal); }
.stat-icon.pink { background: rgba(244, 63, 94, 0.15); color: var(--accent-pink); }
.stat-icon.yellow { background: rgba(251, 191, 36, 0.15); color: var(--accent-yellow); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Dashboard Panels (e.g. Leaderboard Card) */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Leaderboard Custom Styling */
.leaderboard-table-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    padding: 1.2rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    vertical-align: middle;
}

.leaderboard-table tr {
    transition: var(--transition-fast);
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

/* Leaderboard Badges */
.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffe066, #f59f00);
    color: #432b00;
    box-shadow: 0 0 12px rgba(245, 159, 0, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #e9ecef, #adb5bd);
    color: #212529;
    box-shadow: 0 0 12px rgba(173, 181, 189, 0.3);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #f0b080, #c86830);
    color: #401000;
    box-shadow: 0 0 12px rgba(200, 104, 48, 0.3);
}

.rank-badge.normal {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.runner-id {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.runner-name-cell {
    font-weight: 500;
}

.distance-highlight {
    font-weight: 700;
    color: var(--accent-teal);
    font-size: 1.05rem;
}

.pace-value {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Forms Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem 1rem 3rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background: rgba(10, 15, 28, 0.95);
}

/* Suggestion name display for Submit Result tab */
.id-suggestion {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: var(--accent-teal);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.2s ease-out;
}

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

.id-suggestion.error {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
    color: var(--accent-pink);
}

/* Grid Layout for Forms */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #030712;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    box-shadow: none;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Success Card Modal after registration */
.success-modal {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.generated-id-card {
    background: rgba(10, 15, 28, 0.7);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.generated-id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-id {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.card-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Search Dashboard Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.search-results-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
    position: relative;
    z-index: 5;
}

.search-results-panel.active {
    display: block;
}

.profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.profile-meta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-meta p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* History Logs & Scrollbar */
.history-table-container {
    max-height: 380px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.history-table-container::-webkit-scrollbar {
    width: 6px;
}

.history-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.history-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.history-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Charts Grid for Profile */
.profile-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    height: 100%;
}

.chart-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Action icons */
.btn-icon-only {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(244, 63, 94, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon-only:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: scale(1.08);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.toast {
    background: rgba(10, 16, 30, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    min-width: 280px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--accent-teal);
}

.toast.success i {
    color: var(--accent-teal);
}

.toast.error {
    border-left: 4px solid var(--accent-pink);
}

.toast.error i {
    color: var(--accent-pink);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Custom Alert Component */
.alert-card {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.alert-card i {
    font-size: 1.4rem;
    color: var(--accent-yellow);
}

.alert-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffdf7e;
}

.alert-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .profile-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .search-login-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .brand {
        margin-bottom: 1.5rem;
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-item a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #line-group-join-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.25rem !important;
        justify-content: center !important;
    }
    
    #line-group-join-card h3 {
        justify-content: center !important;
    }
    
    .profile-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 580px) {
    #home-member-login-form, #member-login-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }
    
    #home-member-login-form .input-wrapper,
    #member-login-form .input-wrapper {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 0.4rem;
    }
    
    .nav-item:last-child {
        grid-column: span 2;
    }
    
    .nav-item a {
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-item a i {
        font-size: 1rem;
    }
    
    .leaderboard-table th, .leaderboard-table td {
        padding: 0.75rem 0.4rem !important;
        font-size: 0.78rem !important;
    }
    
    .toast-container {
        bottom: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        align-items: center !important;
    }
    
    .toast {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Runner Avatars on Leaderboard and tables */
.runner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 242, 254, 0.4);
    background-color: var(--bg-dark);
}

.leaderboard-name-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Profile Avatar Custom Container and edit overlay */
.profile-avatar-container {
    position: relative;
    width: 76px;
    height: 76px;
}

.update-avatar-label {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
}

.update-avatar-label:hover {
    transform: scale(1.15);
}

.update-avatar-label i {
    width: 12px;
    height: 12px;
}

/* Proof Image Thumbnail in History Table */
.proof-thumbnail {
    width: 44px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.proof-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.btn-proof-icon {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-proof-icon:hover {
    background: var(--primary);
    color: #000;
}

/* Lightbox Modal styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(6, 10, 20, 0.92);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75%;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #f8fafc;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

#lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0 1rem;
}


/* Compact Forms & UI elements for home page logins */
.glass-panel-compact {
    padding: 0.85rem 1.25rem !important;
    border-radius: 16px !important;
    margin-bottom: 1.25rem !important;
}

.form-control-compact {
    padding: 0.55rem 0.75rem 0.55rem 2.2rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    height: auto !important;
}

.input-wrapper-compact > i {
    left: 0.85rem !important;
    font-size: 0.9rem !important;
}

.toggle-password-btn {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    z-index: 10;
    transition: color var(--transition-fast);
}

.toggle-password-btn:hover {
    color: var(--text-main);
}

.input-wrapper-compact .toggle-password-btn {
    right: 0.5rem;
}

.btn-compact {
    padding: 0.55rem 1.1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.home-logins-title {
    font-size: 0.92rem !important;
    margin-bottom: 0.6rem !important;
    font-weight: 600 !important;
}
