/* ── Reset & base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a1a;
    background-image: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        repeating-linear-gradient(0deg, #3c3c3c 0px, #3c3c3c 2px, #2a2a2a 2px, #2a2a2a 4px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #F0F3FA;
    overflow-x: hidden;
}

/* Пиксельный шрифт для заголовков */
h1, h2, h3, .logo-text, .brand h1, .login-btn span {
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 0.02em;
}

/* декоративные элементы в стиле Minecraft (камни, трава) */
body::before {
    content: '🪨🪨🪨';
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 2rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}
body::after {
    content: '🌿🌿🌿';
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

/* ── Header ── */
.header {
    position: relative;
    z-index: 2;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 4px solid #8B6B4A;
    background: rgba(30, 25, 20, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: #8B6B4A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #C89B5C;
    box-shadow: inset 0 -4px 0 #5a3f2b;
}
.logo-icon i {
    font-size: 1.8rem;
    color: #f5e6c8;
    text-shadow: 2px 2px 0 #5a3f2b;
}
.logo-text {
    font-size: 1.6rem;
    color: #f5e6c8;
    text-shadow: 3px 3px 0 #5a3f2b;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}
.nav a {
    color: #d4c4a8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}
.nav a i {
    margin-right: 6px;
}
.nav a:hover {
    color: #f5e6c8;
    background: rgba(139, 107, 74, 0.3);
}
.nav a.active {
    color: #f5e6c8;
    background: #8B6B4A;
    box-shadow: inset 0 -3px 0 #5a3f2b;
}

/* ── Main content ── */
.main {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.content-grid {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ЛЕВАЯ КОЛОНКА */
.info-col {
    background: rgba(30, 25, 20, 0.6);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 2rem;
    border: 2px solid #8B6B4A;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.2);
}

.minecraft-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.minecraft-title .block-icon {
    font-size: 2.4rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}
.minecraft-title h2 {
    font-size: 1.8rem;
    color: #f5e6c8;
    text-shadow: 3px 3px 0 #5a3f2b;
    line-height: 1.3;
}

.info-col p {
    font-size: 1rem;
    color: #d4c4a8;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.info-col p strong {
    color: #f5e6c8;
}

/* Виджеты */
.widget {
    background: rgba(20, 15, 10, 0.7);
    border-radius: 1.2rem;
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #C89B5C;
}
.widget h3 {
    font-size: 0.9rem;
    color: #f5e6c8;
    margin-bottom: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 0 #5a3f2b;
}
.widget h3 i {
    margin-right: 8px;
    color: #C89B5C;
}

.video-widget ul {
    list-style: none;
}
.video-widget li {
    color: #d4c4a8;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(200, 155, 92, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
}
.video-widget li i {
    color: #FF0000;
    font-size: 1.1rem;
}
.video-widget li:last-child {
    border-bottom: none;
}

.meme-widget .meme-content {
    color: #d4c4a8;
    font-size: 0.9rem;
}
.meme-widget .meme-image {
    margin-top: 0.8rem;
    background: #2d2d2d !important;
    border: 2px solid #5a3f2b;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
    text-align: center;
    padding: 0.8rem !important;
}
.meme-widget .meme-image span {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #a09080;
}

/* ПРАВАЯ КОЛОНКА – форма */
.login-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease-out;
}

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

.login-card {
    background: rgba(30, 25, 20, 0.8);
    backdrop-filter: blur(14px);
    border-radius: 2rem;
    padding: 2.2rem 2rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 2px #8B6B4A, 0 0 0 4px #1a1a1a;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s;
}
.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 2px #C89B5C, 0 0 0 4px #1a1a1a;
}

.brand {
    text-align: center;
    margin-bottom: 2rem;
}
.brand-icon {
    width: 64px;
    height: 64px;
    background: #8B6B4A;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid #C89B5C;
    box-shadow: inset 0 -6px 0 #5a3f2b;
}
.brand-icon i {
    font-size: 2.2rem;
    color: #f5e6c8;
    text-shadow: 2px 2px 0 #5a3f2b;
}
.brand h1 {
    font-size: 1.5rem;
    color: #f5e6c8;
    text-shadow: 3px 3px 0 #5a3f2b;
}
.brand p {
    color: #d4c4a8;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #C89B5C;
    font-size: 1.2rem;
    pointer-events: none;
}
.input-field {
    width: 100%;
    background: rgba(10, 8, 6, 0.8);
    border: 2px solid #5a3f2b;
    border-radius: 1.2rem;
    padding: 0.9rem 1rem 0.9rem 3rem;
    font-size: 1rem;
    font-weight: 500;
    color: #f5e6c8;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
    outline: none;
}
.input-field:focus {
    border-color: #C89B5C;
    background: rgba(20, 16, 12, 0.9);
    box-shadow: 0 0 0 3px rgba(200, 155, 92, 0.3);
}
.input-field::placeholder {
    color: #7a6a5a;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #C89B5C;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
    padding: 0;
}
.password-toggle:hover {
    color: #f5e6c8;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.8rem;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', monospace;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4c4a8;
    cursor: pointer;
}
.checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: #C89B5C;
    cursor: pointer;
}
.forgot-link {
    color: #C89B5C;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover {
    color: #f5e6c8;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: #8B6B4A;
    border: none;
    border-radius: 1.8rem;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f5e6c8;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 0 #5a3f2b, 0 4px 10px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 0 #5a3f2b;
}
.login-btn i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #5a3f2b, 0 6px 15px rgba(0,0,0,0.5);
    background: #a07b55;
}
.login-btn:hover i {
    transform: translateX(4px);
}
.login-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #5a3f2b;
}
.login-btn:disabled {
    opacity: 0.6;
    transform: translateY(4px);
    box-shadow: 0 4px 0 #5a3f2b;
    pointer-events: none;
}

.signup-prompt {
    text-align: center;
    margin-top: 2rem;
    color: #d4c4a8;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', monospace;
}
.signup-prompt a {
    color: #C89B5C;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.3rem;
    transition: color 0.2s;
}
.signup-prompt a:hover {
    color: #f5e6c8;
    text-decoration: underline;
}

.message-toast {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.7rem;
    border-radius: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: #f5e6c8;
    border-left: 4px solid #C89B5C;
    font-family: 'Press Start 2P', monospace;
}
.message-toast.error {
    border-left-color: #ff6b6b;
    background: rgba(255, 0, 0, 0.15);
}
.message-toast.success {
    border-left-color: #51cf66;
    background: rgba(0, 255, 0, 0.1);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 2;
    border-top: 4px solid #8B6B4A;
    background: rgba(20, 16, 12, 0.9);
    backdrop-filter: blur(6px);
    padding: 2rem 2rem 1.5rem;
    margin-top: 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-col h4 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #f5e6c8;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 0 #5a3f2b;
}
.footer-col a,
.footer-col p {
    display: block;
    color: #b0a090;
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #f5e6c8;
}
.footer-col .socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.footer-col .socials a {
    font-size: 1.4rem;
    color: #b0a090;
    transition: color 0.2s;
}
.footer-col .socials a:hover {
    color: #f5e6c8;
}
.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 2px solid #5a3f2b;
    text-align: center;
    font-size: 0.7rem;
    color: #7a6a5a;
    font-family: 'Press Start 2P', monospace;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .info-col {
        text-align: center;
    }
    .minecraft-title {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .nav {
        justify-content: center;
        gap: 0.8rem;
    }
    .nav a {
        font-size: 0.6rem;
    }
    .login-card {
        padding: 1.8rem 1.2rem;
    }
    .brand h1 {
        font-size: 1.2rem;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .minecraft-title h2 {
        font-size: 1.3rem;
    }
}

/* убираем автозаполнение */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s;
}