/* Только светлая тема */
:root {
    --bs-body-bg: #f0f2f5;
    --bs-body-color: #1d1d1f;
    --bs-border-color: #d2d2d7;
    --bs-primary: #007aff;
    --bs-primary-rgb: 0, 122, 255;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem;
    padding-top: 5rem;
    position: relative;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

/* Статичный точечный фон (светлее) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, #d9d9d9 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 4px 4px, #b0b0b0 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    z-index: -1;
}

/* Анимация включается только при наличии класса .animate-bg */
body.animate-bg::before {
    animation: drift 60s linear infinite;
}

body.animate-bg::after {
    animation: drift 120s linear infinite reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -40px); }
}

/* Верхняя панель */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: transparent;
    z-index: 1040;
}

.top-bar .date {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    opacity: 0.8;
}

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.theme-toggle {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.theme-toggle:hover {
    background: #f8f9fa;
}

.theme-toggle i {
    font-size: 1.2rem;
}

.login-container {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.quote-card {
    transition: opacity 0.3s;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
}

.custom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.8;
}

.custom-icon:hover {
    transform: scale(1.05);
    opacity: 1;
}

.custom-icon svg {
    width: 36px;
    height: 36px;
}

.icon-bootstrap { color: #7952b3; }
.icon-dotnet { color: #512BD4; }
.icon-brain { color: #e83e8c; }

/* Футер – едва заметный, в стиле хакера */
.footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
}

.hacker-brand {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
    display: inline-block;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px dashed #aaa;
    padding-bottom: 6px;
    font-size: 0.7rem;
    color: #6e6e73;
    opacity: 0.7;
}

.hacker-ascii {
    font-weight: 600;
}

.infinity-symbol {
    font-size: 1em;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    margin-right: 8px;
}

@media (max-width: 576px) {
    body { padding-top: 4.5rem; }
    .top-bar { padding: 0.75rem 1rem; }
}
