/* Dreadmyst Online - Joke Login Game Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Fantasy';
    src: local('Cinzel'), local('Trajan Pro'), local('Times New Roman');
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
    background: linear-gradient(
        135deg,
        #1a0f07 0%,
        #3d2517 25%,
        #5c3d2a 50%,
        #3d2517 75%,
        #1a0f07 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add subtle blur/fog effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.potion-icon {
    width: 60px;
    height: 80px;
    margin: 0 auto 0.5rem;
    background: linear-gradient(180deg, #8b0000 0%, #ff4444 50%, #8b0000 100%);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.potion-icon::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #8b6914;
    border-radius: 3px;
}

.potion-icon::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.game-title {
    font-size: 4rem;
    font-weight: 700;
    color: #d4a84b;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(212, 168, 75, 0.3);
    letter-spacing: 0.3rem;
    position: relative;
    padding: 0 2rem;
}

/* Decorative lines around title */
.game-title::before,
.game-title::after {
    content: '';
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b0000, #8b0000, transparent);
    left: 0;
    right: 0;
}

.game-title::before {
    top: -10px;
}

.game-title::after {
    bottom: -5px;
}

.game-subtitle {
    font-size: 1.5rem;
    color: #8a7355;
    letter-spacing: 1rem;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    background: rgba(20, 15, 10, 0.85);
    border: none;
    border-radius: 4px;
    color: #c4b89a;
    outline: none;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-field::placeholder {
    color: #6a5f50;
}

.input-field:focus {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(212, 168, 75, 0.2);
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8a7355;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    margin: 1rem 0;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #8a7355;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #8a7355;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '\2713';
    color: #1a0f07;
    font-size: 14px;
    font-weight: bold;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: #fff;
    background: linear-gradient(180deg, #c94a32 0%, #a83a25 50%, #8b2e1a 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 4px 15px rgba(139, 46, 26, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Brush stroke effect on button */
.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    right: -5px;
    bottom: 0;
    background: inherit;
    border-radius: 4px;
    transform: skewX(-2deg);
    z-index: -1;
}

.login-button:hover {
    background: linear-gradient(180deg, #d95a42 0%, #b84a35 50%, #9b3e2a 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(139, 46, 26, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-button:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(139, 46, 26, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: linear-gradient(
        180deg,
        rgba(30, 25, 20, 0.95) 0%,
        rgba(20, 15, 10, 0.98) 100%
    );
    padding: 2rem 3rem;
    border-radius: 4px;
    text-align: center;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 115, 85, 0.2);
    animation: popupSlide 0.3s ease;
}

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

.popup-message {
    color: #c4b89a;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05rem;
}

/* Connecting box - no buttons so no bottom margin needed */
.connecting-box .popup-message {
    margin-bottom: 0;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.popup-btn {
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.popup-btn-yes {
    color: #fff;
    background: linear-gradient(180deg, #c94a32 0%, #a83a25 50%, #8b2e1a 100%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 10px rgba(139, 46, 26, 0.3);
}

.popup-btn-yes:hover {
    background: linear-gradient(180deg, #d95a42 0%, #b84a35 50%, #9b3e2a 100%);
    transform: translateY(-1px);
}

.popup-btn-no {
    color: #fff;
    background: linear-gradient(180deg, #c94a32 0%, #a83a25 50%, #8b2e1a 100%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 10px rgba(139, 46, 26, 0.3);
}

.popup-btn-no:hover {
    background: linear-gradient(180deg, #d95a42 0%, #b84a35 50%, #9b3e2a 100%);
    transform: translateY(-1px);
}

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

/* Responsive */
@media (max-width: 480px) {
    .game-title {
        font-size: 2.5rem;
        letter-spacing: 0.1rem;
    }

    .game-subtitle {
        font-size: 1rem;
        letter-spacing: 0.5rem;
    }

    .login-form {
        padding: 0 1rem;
    }

    .popup-box {
        margin: 1rem;
        padding: 1.5rem 2rem;
    }
}
