/* CSS for login_ui.css */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-overlay.login-overlay--privacy-shield {
    background-color: #f3f4f6;
    backdrop-filter: blur(10px);
}

.login-popup {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.login-header h2 {
    color: #2563eb;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.login-header p {
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-container .form-input {
    flex: 1;
    width: auto;
    min-width: 0;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.password-toggle {
    flex-shrink: 0;
    width: auto;
    background: none;
    border: none;
    -webkit-appearance: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    margin-top: 1rem;
    width: 100%;
}

.btn-link:hover {
    color: #1d4ed8;
}

.hidden {
    display: none !important;
}

/* Forget password button styling */
.button-group-with-forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary-auto {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #2563eb;
    color: white;
    width: auto;
    min-width: 120px;
}

.btn-primary-auto:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-forget-password {
    background: none;
    border: none;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    width: auto;
    white-space: nowrap;
}

.btn-forget-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Confirmation dialog styling */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.2s ease-out;
}

.confirm-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.confirm-dialog-message {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-confirm-cancel {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background-color: #f9fafb;
    color: #374151;
    transition: all 0.2s ease;
}

.btn-confirm-cancel:hover {
    background-color: #f3f4f6;
}

.btn-confirm-ok {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background-color: #2563eb;
    color: white;
    transition: all 0.2s ease;
}

.btn-confirm-ok:hover {
    background-color: #1d4ed8;
}

/* Center the whole "message + language button" group */
.login-subheader-row {
    display: inline-flex;
    align-items: baseline;   /* CHANGED: 'center' -> 'baseline' for perfect text alignment */
    gap: 12px;
    justify-content: center;
}

/* Center the row itself inside the header */
.login-header {
    text-align: center;
}

/* Prevent default <p> margins from shifting layout */
.login-subheader-text {
    margin: 0;
    /* line-height: 1;  <-- REMOVED: prevents unnatural clipping */
    /* display: flex;   <-- REMOVED: unnecessary for simple text */
    /* align-items: center; <-- REMOVED */
    
    /* OPTIONAL: To fine-tune visual weight if baseline feels too low due to button padding */
    /* position: relative; */
    /* top: -1px; */
}
