/* Minimal Login Page Styling - Only Layout, No Syncfusion Overrides */

/* Page background - white as requested */
.login-body {
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container for centering */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Language selector positioning */
.language-selector-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-form {
    margin: 0;
}

.language-dropdown {
    min-width: 140px;
}

.language-dropdown.e-dropdownlist {
    background: #ffffff;
    border-color: #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-dropdown.e-dropdownlist:hover {
    border-color: #adb5bd;
}

.language-dropdown.e-dropdownlist.e-input-group {
    height: 38px;
}

.language-dropdown.e-dropdownlist.e-input-group .e-input {
    font-size: 0.9rem;
    padding: 8px 12px;
    height: 100%;
}

/* Language item styling with flags */
.language-item,
.language-value {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.language-flag {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.language-text {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Fix vertical alignment in the dropdown input */
.language-dropdown.e-dropdownlist .e-input-group .e-input {
    display: flex;
    align-items: center;
}

.language-dropdown.e-dropdownlist .e-input-group .e-ddl-icon {
    display: flex;
    align-items: center;
    height: 100%;
}

.language-dropdown.e-dropdownlist .e-input-group .e-clear-icon {
    display: flex;
    align-items: center;
}

/* Ensure proper height and alignment for the value template */
.language-dropdown .e-input-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Ensure the inner content wrapper aligns properly */
.language-dropdown.e-dropdownlist .e-input-group-icon {
    display: flex;
    align-items: center;
}

/* Dropdown popup styling */
.e-dropdownlist.language-dropdown .e-dropdownbase .e-list-item {
    padding: 10px 12px;
}

.e-dropdownlist.language-dropdown .e-dropdownbase .e-list-item:hover {
    background-color: #f8f9fa;
}

.e-dropdownlist.language-dropdown .e-dropdownbase .e-list-item.e-active {
    background-color: #e9ecef;
    font-weight: 600;
}

/* Login card */
.login-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Header section */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.company-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #212529;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Form layout only */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

/* Error message */
.error-message {
    display: none;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    color: #842029;
    padding: 10px 12px;
    font-size: 0.875rem;
}

.error-message.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message i {
    flex-shrink: 0;
}

.error-content {
    flex: 1;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.login-footer p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .company-logo {
        height: 50px;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .language-selector-container {
        position: fixed;
        top: 10px;
        right: 10px;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
    
    .language-dropdown.e-dropdownlist.e-input-group {
        height: 36px;
    }
    
    .language-dropdown.e-dropdownlist.e-input-group .e-input {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .language-flag {
        font-size: 1rem;
    }
    
    .language-text {
        font-size: 0.85rem;
    }
}

/* Loading spinner animation */
.e-spinner-pane {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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