@font-face {
    font-family: 'Lusail';
    src: url('../fonts/Lusail-Regular.woff2') format('woff2'),
         url('../fonts/Lusail-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lusail';
    src: url('../fonts/Lusail-Medium.woff2') format('woff2'),
         url('../fonts/Lusail-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Lusail';
    src: url('../fonts/Lusail-Bold.woff2') format('woff2'),
         url('../fonts/Lusail-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Lusail', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.auth-body {
    background-color: #8A1538; /* MOJ Maroon Color assumption */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-container svg, .logo-container img {
    height: 80px;
    width: auto;
    fill: white;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.login-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

.form-control {
    background-color: #fff;
    border: none; /* No border initially */
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Lusail', sans-serif; /* ensure inputs use the font too */
    text-align: start !important;
}

[dir="rtl"] .form-control {
    text-align: right !important;
}

[dir="ltr"] .form-control {
    text-align: left !important;
}

[dir="rtl"] .form-control::placeholder {
    text-align: right !important;
}

[dir="ltr"] .form-control::placeholder {
    text-align: left !important;
}

/* Remove default outline/box-shadow and add custom border on focus */
.form-control:focus {
    box-shadow: none;
    background-color: #fff;
    border: 2px solid #a88b7d; /* Gold border on focus */
    padding: calc(0.75rem - 2px) calc(1rem - 2px); /* Adjust padding to prevent jump */
}

.btn-login {
    background-color: #a88b7d; /* Gold/Beige accent color */
    border: none;
    color: #fff;
    padding: 0.5rem 1rem; /* Little padding */
    width: auto; /* Width based on content */
    min-width: auto;
    border-radius: 2rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

[dir="ltr"] .btn-icon-wrapper svg {
    transform: rotate(180deg);
}

.btn-login:hover {
    background-color: #967a6d;
    color: #fff;
}

.btn-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px; /* Increased from 28px */
    height: 40px; /* Increased from 28px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-wrapper svg {
    width: 30px; /* Increased from 16px */
    height: 30px; /* Increased from 16px */
    fill: white;
    /* No rotation needed if we use correct arrow */
}

.footer-text {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    width: 100%;
}

/* Placeholder styling */
::placeholder {
    color: #999 !important;
    opacity: 1;
}
/* Language Switcher Login */
.lang-switcher-wrapper {
    position: absolute;
    top: 2rem;
}

[dir="rtl"] .lang-switcher-wrapper {
    left: 2rem;
}

[dir="ltr"] .lang-switcher-wrapper {
    right: 2rem;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-lang:hover, .btn-lang:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown-menu-lang {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 10px !important;
    overflow: hidden;
    padding: 0;
}

.dropdown-item-lang {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    text-align: inherit;
}

.dropdown-item-lang:hover {
    background-color: #f8f9fa;
    color: #8A1538;
}

.dropdown-item-lang.active {
    background-color: #8A1538;
    color: white;
}

.error-message {
    color: #ffffff; /* pure white for maximum contrast */
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.4), 0 0 12px rgba(255, 255, 255, 0.3);
    display: block;
    margin-top: 0.5rem;
}
