:root {
    --primary-color: #221BFF; /* Indigo 600 */
    --primary-hover: #221BFF; /* Indigo 700 */
    --bg-gradient: linear-gradient(135deg, #EEF2FF 0%, #C7D2FE 100%);
    --card-bg: #ffffff;
    --text-color: #221bfb;
    --text-muted: #6b7280;
    --input-border: #e5e7eb;
    --input-focus: #221BFF;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background decoration */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
}
.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #f6fbff;
}
.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #f6fbff;
}

.login-container {
    width: 100%;
    max-width: 640px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    height: 48px;
    margin-bottom: 4px;
    object-fit: contain;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 1rem;
}

.form-floating > .form-control {
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: #f9fafb;
    font-size: 15px;
    height: 56px;
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-floating > .form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: #fff;
    outline: none;
}

.form-floating > label {
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
    top: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-floating {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    font-size: 1.1rem;
    padding: 10px;
    transition: all 0.2s ease;
    line-height: 1;
    user-select: none;
}

.toggle-password:hover {
    color: var(--primary-color);
}

[dir="rtl"] .toggle-password {
    right: auto;
    left: 8px;
}

.form-floating > .form-control#passwordInput {
    padding-right: 48px;
}

[dir="rtl"] .form-floating > .form-control#passwordInput {
    padding-right: 12px;
    padding-left: 48px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    color: var(--input-focus);
    font-weight: 500;
}

.btn-signin {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signin:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    color: #ffffff;
}

.btn-signin:active {
    transform: translateY(0);
}

.lang-switcher-fab {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* Focus outline fix */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.form-control:focus-visible {
    outline: none;
}

.otp__digit {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    caret-color: #3f51b5;
    padding: 0;
}

@media screen and (max-width:767px) {
    .login-container{
        padding: 10px 10px;
    }
    .otp__digit.form-control {
        width: 46px;
        height: 46px;
    }
    .login-card{
        padding: 20px 10px;
    }
}
/* Support Section Styles */
.login-support-section {
    border-top: 1px solid #f1f5f9;
}

.support-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.support-email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.support-email a:hover {
    text-decoration: underline;
}

.whatsapp-contact-wrapper {
    display: flex;
    justify-content: center;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #fff;
    padding: 5px 6px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    /* font-weight: 600; */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-link i {
    font-size: 18px;
}

