/* Modern Login Styles for VRPT Frontend - 2024 */

/* Login Page Specific Styles */
body.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-image {
    height: 48px;
    width: auto;
    transition: opacity 0.3s ease;
    display: block;
    max-width: none;
    object-fit: contain;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    text-align: left;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: 500;
}

/* Responsive Design for Login */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .logo-image {
        max-width: 150px;
    }
    
    .form-group input {
        padding: 0.875rem;
    }
    
    .login-button {
        padding: 0.875rem;
    }
}

/* Dark mode support for login */
@media (prefers-color-scheme: dark) {
    body.login-page {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .login-container {
        background: #2c3e50;
        color: #e1e8ed;
    }
    
    .login-header h1 {
        color: #e1e8ed;
    }
    
    .login-header p {
        color: #bdc3c7;
    }
    
    .form-group label {
        color: #e1e8ed;
        text-align: left;
    }
    
    .form-group input {
        background: #34495e;
        border-color: #4a5568;
        color: #e1e8ed;
    }
    
    .form-group input:focus {
        background: #2c3e50;
        border-color: #3498db;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* IPv4 Warning Banner */
.banner-ipv4 {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .banner-ipv4 {
        background-color: #664d03;
        border-color: #ffc107;
        color: #ffc107;
    }
} 