/* Cyber Scout Login Page Styles */

.main-wrapper {
    margin-top: 0; /* Override to remove navbar space */
}

.content {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f8;
    background-image: url('/assets/images/student/studentLoginScreen.png');
    background-size: cover;
    background-position: center;
}

.content > :first-child {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content > :last-child {
    padding-bottom: 20px;
}

.cyber-scout-login-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

/* Form Section */
.login-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scout-login-form {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.cyber-alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.error-alert {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #c0392b;
}

.info-alert {
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498db;
    color: #2980b9;
}

.educator-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.educator-link:hover {
    text-decoration: underline;
}

.cyber-form-group {
    margin-bottom: 20px;
}

.cyber-label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.cyber-input {
    width: 100%;
    padding: 15px;
    border: 3px solid #8b4513;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-weight: bold;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cyber-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1), 0 0 10px rgba(52, 152, 219, 0.3);
    transform: scale(1.02);
}

.cyber-input::placeholder {
    color: #7f8c8d;
    font-style: italic;
}

.password-hint-card {
    background: rgba(255, 235, 170, 0.8);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    text-align: center;
}

.password-hint-card small {
    color: #d68910;
    font-size: 0.9rem;
}

.password-hint-card strong {
    color: #b7950b;
    font-family: 'Courier New', monospace;
}

.forgot-password-inline {
    text-align: center;
    margin: 15px 0;
}

.forgot-password-inline-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.forgot-password-inline-link:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: #2c3e50;
    transform: translateY(-2px);
}

.cyber-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid #a93226;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cyber-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* Footer */
.login-card-footer {
    text-align: center;
    
}

.educator-footer-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.educator-footer-link:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-scout-login-container {
        padding: 10px;
    }
    
    .cyber-scout-login-card {
        padding: 20px;
    }
    
    .login-card-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .login-avatar-frame {
        width: 200px;
        height: 200px;
    }
    
    .login-title-plate span {
        font-size: 2rem;
    }
    
    .mini-games-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mini-game-card {
        padding: 10px;
    }
    
    .mini-game-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .login-title-plate span {
        font-size: 1.5rem;
    }
    
    .welcome-message {
        font-size: 1rem;
    }
    
    .login-avatar-frame {
        width: 150px;
        height: 150px;
    }
    
    .cyber-input {
        padding: 12px;
        font-size: 1rem;
    }
    
    .cyber-login-btn {
        padding: 15px;
        font-size: 1.1rem;
    }
}

/* Animation for floating effect */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-character-image {
    animation: float 4s ease-in-out infinite;
}

.mini-game-card:nth-child(1) { animation: float 3s ease-in-out infinite; animation-delay: 0s; }
.mini-game-card:nth-child(2) { animation: float 3s ease-in-out infinite; animation-delay: 1s; }
.mini-game-card:nth-child(3) { animation: float 3s ease-in-out infinite; animation-delay: 2s; }
