/* Login Portal Styles - Resource Assistance MVC System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-logo {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.login-header h1 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.login-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.system-status {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.system-status h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

.system-status p {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.system-status .status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.system-status .badge-green {
    background: #e6ffed;
    color: #1b5e20;
}

.system-status .badge-red {
    background: #ffebee;
    color: #c62828;
}

.system-status .badge-amber {
    background: #fff7e6;
    color: #7a4c00;
}

.form-title {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    text-align: left;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3c3;
    text-align: left;
}

/* Responsive Design */

/* Mobile Small (320px and below) */
@media (max-width: 320px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .system-status {
        padding: 12px;
    }
    
    .system-status p {
        font-size: 0.8rem;
    }
}

/* Mobile Medium (321px to 375px) */
@media (min-width: 321px) and (max-width: 375px) {
    .login-box {
        padding: 25px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .system-status {
        padding: 14px;
    }
}

/* Mobile Large (376px to 425px) */
@media (min-width: 376px) and (max-width: 425px) {
    .login-box {
        padding: 30px;
    }
    
    .login-header h1 {
        font-size: 2.1rem;
    }
}

/* Tablet (426px to 768px) */
@media (min-width: 426px) and (max-width: 768px) {
    .login-container {
        max-width: 350px;
    }
    
    .login-box {
        padding: 35px;
    }
}

/* Desktop (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        max-width: 380px;
    }
}

/* Large Desktop (1025px and above) */
@media (min-width: 1025px) {
    .login-container {
        max-width: 400px;
    }
    
    .login-box {
        padding: 40px;
    }
}
