/* Minecraft Font */
@font-face {
    font-family: 'Minecraft';
    src: url('/font/minecraft-seven-2.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base Styles for Auth Pages */
body.auth-page {
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    color: #E0E0E0;
    overflow-x: hidden;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/image/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(0,0,0,0.6) 19px, rgba(0,0,0,0.6) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0,0,0,0.6) 19px, rgba(0,0,0,0.6) 20px),
        rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    z-index: -1;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-logo-link {
    display: inline-block;
    color: #FFFFA0;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    transition: transform 0.2s ease;
}

.auth-logo-link:hover {
    transform: scale(1.05);
    color: #FFFFA0;
}

.auth-card {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 3px solid #555;
    border-radius: 0;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    box-shadow: 
        0 0 0 2px #000000,
        inset 2px 2px 0 0 rgba(255, 255, 255, 0.1),
        inset -2px -2px 0 0 rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFA0;
    font-family: 'Minecraft', 'Courier New', monospace;
    text-align: center;
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

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

.auth-label {
    display: block;
    color: #B0B0B0;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
}

.auth-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #1a1a1a;
    border: 2px solid #555;
    border-radius: 0;
    color: #E0E0E0;
    font-size: 0.9375rem;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: 
        inset 2px 2px 0 0 rgba(0, 0, 0, 0.5),
        inset -2px -2px 0 0 rgba(255, 255, 255, 0.1);
}

.auth-input:focus {
    outline: none;
    border-color: #7ED77E;
    background: #2a2a2a;
    box-shadow: 
        inset 2px 2px 0 0 rgba(0, 0, 0, 0.5),
        inset -2px -2px 0 0 rgba(255, 255, 255, 0.1),
        0 0 0 2px rgba(126, 215, 126, 0.3);
}

.auth-input::placeholder {
    color: #666;
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.625rem;
    cursor: pointer;
    appearance: none;
    background: #1a1a1a;
    border: 2px solid #555;
    border-radius: 0;
    position: relative;
    flex-shrink: 0;
    box-shadow: 
        inset 2px 2px 0 0 rgba(0, 0, 0, 0.5),
        inset -2px -2px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.auth-checkbox:checked {
    background: #7ED77E;
    border-color: #55AA55;
}

.auth-checkbox-label {
    color: #B0B0B0;
    font-size: 0.9rem;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
}

.auth-button {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(180deg, #7ED77E 0%, #55AA55 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 0;
    border: none;
    position: relative;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: 'Minecraft', 'Courier New', monospace;
    cursor: pointer;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateY(0);
    box-sizing: border-box;
    
    box-shadow: 
        0 0 0 2px #000000,
        inset 2px 2px 0 0 rgba(255, 255, 255, 0.4),
        inset -2px -2px 0 0 rgba(0, 0, 0, 0.4),
        0 3px 0 0 #1A4D1A,
        0 3px 0 2px #000000,
        0 5px 10px rgba(0, 0, 0, 0.5);
}

.auth-button:hover {
    background: linear-gradient(180deg, #9EF79E 0%, #6FCC6F 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    
    box-shadow: 
        0 0 0 2px #000000,
        inset 2px 2px 0 0 rgba(255, 255, 255, 0.5),
        inset -2px -2px 0 0 rgba(0, 0, 0, 0.3),
        0 4px 0 0 #1A4D1A,
        0 4px 0 2px #000000,
        0 7px 15px rgba(90, 191, 90, 0.4);
}

.auth-button:active {
    background: linear-gradient(180deg, #55AA55 0%, #3D7D3D 100%);
    transform: translateY(1px);
    
    box-shadow: 
        0 0 0 2px #000000,
        inset 2px 2px 0 0 rgba(0, 0, 0, 0.5),
        inset -2px -2px 0 0 rgba(255, 255, 255, 0.2),
        0 2px 0 0 #1A4D1A,
        0 2px 0 2px #000000,
        0 3px 5px rgba(0, 0, 0, 0.6);
}

.auth-link {
    color: #7ED77E;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #9EF79E;
    text-decoration: underline;
}

.auth-error {
    color: #ff8888;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
}

.auth-status {
    padding: 1rem;
    background: rgba(90, 191, 90, 0.2);
    border: 2px solid #7ED77E;
    border-radius: 0;
    color: #9EF79E;
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    text-align: center;
}

.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem;
    }

    .auth-logo {
        margin-bottom: 1.25rem;
    }

    .auth-logo-link {
        font-size: 1.75rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
        max-width: 100%;
    }

    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .auth-form-group {
        margin-bottom: 1rem;
    }

    .auth-checkbox-wrapper {
        margin-bottom: 1rem;
    }

    .auth-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .auth-button {
        width: 100%;
    }
}

