@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --light: #ecf0f1;
    --dark: #1a1a1a;
    --wood: #8d6e63;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle, #34495e, #2c3e50);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(0,0,0,0.05) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.05) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.05) 75%);
    background-size: 100px 100px;
    z-index: -1;
    animation: move 60s linear infinite;
}

@keyframes move {
    from { transform: translate(-25%, -25%); }
    to { transform: translate(0, 0); }
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--wood);
    position: relative;
}

h1 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary);
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--wood);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--dark);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.switch-mode {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.switch-mode a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.pawn-icon {
    width: 50px;
    height: 50px;
    background: var(--wood);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
}