/* Custom styles for WAWA Game */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    background: var(--gradient-primary);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.game-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-logo h2 {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: none;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.login-form .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form .input-group-text {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--primary-shadow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-shadow-hover);
    color: white;
}

.btn-microsoft-login {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #0078d4;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.btn-microsoft-login:hover {
    background: #106ebe;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
}

.btn-microsoft-login i {
    margin-right: 8px;
}

.btn-register {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.dashboard-welcome {
    text-align: center;
    padding: 40px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    color: #495057;
    margin-bottom: 15px;
}

.dashboard-welcome i {
    color: var(--primary-color);
    margin-right: 10px;
}

.game-option {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.game-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-option .card-body {
    padding: 30px 20px;
}

.stat-item {
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    margin: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item p {
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

/* Form validation styles */
.text-danger small {
    font-size: 0.85rem;
}

.form-text {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        margin: 20px 15px;
        padding: 30px 20px;
    }
    
    .game-logo h2 {
        font-size: 2rem;
    }
    
    .game-logo i {
        font-size: 2.5rem;
    }
    
    .dashboard-welcome {
        padding: 20px 15px;
    }
    
    .stat-item {
        margin: 5px;
        padding: 15px;
    }
}

/* Toast/Alert Styles */
.alert {
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border: none;
}

.alert-error,
.alert-danger {
    background-color: #dc3545;
    color: white;
}

.alert-success {
    background-color: #28a745;
    color: white;
}

.alert-warning {
    background-color: #ffc107;
    color: #212529;
}

.alert-info {
    background-color: #17a2b8;
    color: white;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.alert-warning .btn-close {
    filter: none;
    opacity: 0.6;
}

/* Animation for page load */
.login-card,
.dashboard-welcome,
.game-option {
    animation: fadeInUp 0.6s ease-out;
}

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

