/**
 * TNC Family Portal - Login Page Base Styles
 * Location: /css/login.css
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', Meiryo, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Default theme */
body.theme-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Particle container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
}

/* Login container */
.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Header */
.login-header {
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

body.theme-default .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* Logo icon */
.logo-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.logo-icon.animated {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Seasonal greeting */
.seasonal-greeting {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Language switch */
.lang-switch {
    margin-top: 12px;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

/* Login form */
.login-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Button */
.btn {
    width: 100%;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.theme-default .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Error message */
.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Forgot password link */
.forgot-link {
    text-align: center;
    margin-top: 20px;
}

.forgot-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-link a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .login-header {
        padding: 25px 20px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 40px;
    }
    
    .login-form {
        padding: 25px 20px;
    }
    
    .form-group input {
        padding: 12px;
    }
    
    .btn {
        padding: 12px;
    }
}
