/* Custom Login Styles - No Bootstrap Dependency - Compact Design */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Christmas Theme - Subtle */
body.christmas-theme .login-container {
    background: linear-gradient(135deg, #7a8eea 0%, #8a5bb2 50%, #7a8eea 100%);
    background-size: 200% 200%;
    animation: christmasGradient 15s ease infinite;
}

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

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

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    animation: snowfall linear infinite;
    opacity: 0.4;
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.snowflake:nth-child(3) {
    left: 50%;
    animation-duration: 14s;
    animation-delay: 4s;
}

.snowflake:nth-child(4) {
    left: 70%;
    animation-duration: 11s;
    animation-delay: 1s;
}

.snowflake:nth-child(5) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 3s;
}

.snowflake:nth-child(6) {
    left: 20%;
    animation-duration: 15s;
    animation-delay: 5s;
}

.snowflake:nth-child(7) {
    left: 5%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.snowflake:nth-child(8) {
    left: 15%;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.snowflake:nth-child(9) {
    left: 25%;
    animation-duration: 14s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(10) {
    left: 35%;
    animation-duration: 12s;
    animation-delay: 3.5s;
}

.snowflake:nth-child(11) {
    left: 45%;
    animation-duration: 16s;
    animation-delay: 4.5s;
}

.snowflake:nth-child(12) {
    left: 55%;
    animation-duration: 10s;
    animation-delay: 0.8s;
}

.snowflake:nth-child(13) {
    left: 65%;
    animation-duration: 13s;
    animation-delay: 1.8s;
}

.snowflake:nth-child(14) {
    left: 75%;
    animation-duration: 15s;
    animation-delay: 2.8s;
}

.snowflake:nth-child(15) {
    left: 80%;
    animation-duration: 11s;
    animation-delay: 3.8s;
}

.snowflake:nth-child(16) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 4.8s;
}

.snowflake:nth-child(17) {
    left: 40%;
    animation-duration: 12s;
    animation-delay: 0.3s;
}

.snowflake:nth-child(18) {
    left: 60%;
    animation-duration: 13s;
    animation-delay: 1.3s;
}

.snowflake:nth-child(19) {
    left: 8%;
    animation-duration: 15s;
    animation-delay: 2.3s;
}

.snowflake:nth-child(20) {
    left: 95%;
    animation-duration: 11s;
    animation-delay: 3.3s;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 15px;
}

/* Christmas Container - Subtle accent */
.christmas-container .login-card {
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15), 0 0 0 1px rgba(220, 38, 38, 0.1);
}

.christmas-container .login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(220, 38, 38, 0.1), rgba(34, 197, 94, 0.1), rgba(220, 38, 38, 0.1));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.5;
}

.login-card .card-body {
    padding: 0;
}

.login-row {
    display: flex;
    min-height: 500px;
}

.login-image-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex: 1;
}

/* Christmas theme for image section */
.christmas-container .login-image-section {
    background: linear-gradient(135deg, #7a8eea 0%, #8a5bb2 100%);
}

.login-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="circles" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="8" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="200" height="200" fill="url(%23circles)"/></svg>');
    opacity: 0.3;
}

.login-image-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding: 30px;
}

.login-image-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.login-image-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.login-form-section {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    background: white;
}

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

.login-header h1 {
    color: #2d3748;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-header p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Company logos - Compact styling */
.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.company-logo {
    height: 45px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.company-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Remove all error styling - No red borders or error messages */
.form-control.is-invalid {
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
}

/* Hide all error messages completely */
.invalid-feedback {
    display: none !important;
}

/* Remove any unwanted icons from input fields */
.form-control.is-invalid::before,
.form-control.is-invalid::after,
.input-group-text::before,
.input-group-text::after {
    display: none !important;
}

/* Clean input group styling - Remove heart icons */
.input-group-text {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #718096 !important;
}

.input-group-text::before,
.input-group-text::after {
    display: none !important;
}

/* Remove any pseudo-elements that might create unwanted icons */
.input-group-text i {
    color: #718096 !important;
}

.custom-checkbox {
    margin-bottom: 1rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Christmas button subtle accent */
.christmas-container .btn-primary {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 10px rgba(220, 38, 38, 0.1);
}

.christmas-container .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 15px rgba(220, 38, 38, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Single loader animation for button - Remove duplicate */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    display: none; /* Hide the CSS loader since we use custom spinner */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

.login-divider span {
    background: white;
    padding: 0 15px;
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

/* Bootstrap replacement classes */
.w-100 {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

/* Custom spinner to replace Bootstrap spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.125em;
}

/* Responsive design - Compact with Mobile Improvements */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }
    .login-row {
        flex-direction: column;
        min-height: auto;
    }
    
    .login-image-section {
        min-height: 150px;
        padding: 20px;
        flex: none;
    }
    
    .login-image-content h2 {
        font-size: 1.5rem;
    }
    
    .login-form-section {
        padding: 25px;
        flex: none;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    /* Improved logo sizing for mobile */
    .company-logos {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .company-logo {
        height: 50px; /* Larger on mobile */
    }
    
    /* Hide all error messages on mobile too */
    .invalid-feedback {
        display: none !important;
    }
    
    /* Better form spacing on mobile */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Improved input sizing for mobile */
    .form-control {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    /* Better button sizing for mobile */
    .btn-primary {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    /* Clean input styling for mobile - No red borders */
    .form-control.is-invalid {
        border-color: #e2e8f0 !important;
        background: #f8fafc !important;
    }
}

@media (max-width: 576px) {
    .snowflake {
        font-size: 0.7em;
    }
    
    .login-card {
        margin: 10px;
        border-radius: 12px;
    }
    
    .login-form-section {
        padding: 20px;
    }
    
    .login-image-section {
        min-height: 120px;
        padding: 15px;
    }
    
    .login-image-content h2 {
        font-size: 1.3rem;
    }
    
    .login-header h1 {
        font-size: 1.4rem;
    }
    
    /* Even larger logos for small mobile */
    .company-logos {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .company-logo {
        height: 55px; /* Even larger on small mobile */
    }
    
    /* Hide all error messages on small mobile too */
    .invalid-feedback {
        display: none !important;
    }
    
    /* Improved form controls for small mobile */
    .form-control,
    .input-group-text,
    .btn-outline-secondary {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    /* Better button for small mobile */
    .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .login-form-section {
        padding: 15px;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    /* Largest logos for very small mobile */
    .company-logo {
        height: 60px; /* Largest on very small mobile */
    }
    
    /* Hide all error messages on very small mobile too */
    .invalid-feedback {
        display: none !important;
    }
    
    /* Compact form controls */
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Success/Error message styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 12px 16px;
    margin-bottom: 15px;
}

.alert-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

/* Copyright */
.login-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.login-copyright p {
    color: #718096;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .login-copyright {
        margin-top: 15px;
        padding: 12px;
    }
    
    .login-copyright p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .login-copyright {
        margin-top: 12px;
        padding: 10px;
    }
    
    .login-copyright p {
        font-size: 0.75rem;
    }
} 