@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.login-body {
    display: flex;
    justify-content: center;
    align-items: center; /* Center horizontally and vertically */
    height: 100vh; /* Fixed height to prevent scrolling on the body */
    padding: 10px; /* Minimal padding */
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%); /* Neutral/light blue-gray background to fit the theme */
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    overflow: hidden; /* Forcibly prevent page scroll */
}

/* Ensure no extra padding from existing theme classes ruins the height */
.page-wrappers.login-body {
    padding: 10px;
    margin: 0;
}

.login-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Glassmorphism Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px; /* Narrower width */
    padding: 20px 25px; /* Tightly packed padding */
    margin: 0 auto;
    box-sizing: border-box;
    max-height: 95vh; /* Ensure the card itself never exceeds screen height */
    overflow-y: auto; /* Allow scrolling INSIDE the card if it absolutely must, but try to fit */
}

.glass-card h1 {
    font-size: 22px; /* Smaller title */
    font-weight: 600;
    color: var(--theme-secondary-color, #0d1432);
    margin-bottom: 2px;
    text-align: center;
}

.account-subtitle {
    color: #7d879c;
    font-size: 13px;
    margin-bottom: 12px; /* Reduced margin */
    text-align: center;
}

/* Modern Inputs */
.modern-input-group {
    margin-bottom: 10px; /* Extremely tight margin */
}

.modern-input {
    width: 100%;
    padding: 10px 12px; /* Thinner inputs */
    border-radius: 6px;
    border: 1px solid #e3e9ef;
    background-color: #fff;
    font-size: 13px; /* Smaller text */
    color: #2b3445;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    height: 40px; /* Fixed small height */
}

.modern-input:focus {
    outline: none;
    border-color: var(--theme-primary-color, #007bff);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.modern-input::placeholder {
    color: #aeb4be;
}

/* Password Toggle Eye Icon */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .modern-input {
    padding-right: 40px; /* Make room for the icon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #aeb4be;
    transition: color 0.2s;
    font-size: 16px;
}

.toggle-password:hover {
    color: var(--theme-primary-color, #007bff);
}

/* Modern Button */
.modern-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: var(--theme-primary-color, #007bff);
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    text-transform: uppercase;
    margin-top: 5px;
    height: 42px;
}

.modern-btn:hover {
    background: var(--theme-secondary-color, #0d1432); 
    box-shadow: 0 6px 15px rgba(13, 20, 50, 0.3);
    transform: translateY(-1px);
}

/* Links & Dividers */
.login-or {
	color: #aeb4be;
	margin: 10px 0; /* Tightened */
	position: relative;
    text-align: center;
}

.or-line {
	background-color: #e3e9ef;
	height: 1px;
    width: 100%;
    display: block;
    position: absolute;
    top: 50%;
    z-index: 1;
}

.span-or {
	background-color: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    font-size: 11px; /* smaller */
    text-transform: uppercase;
}

.forgot-pass-link {
    display: block;
    text-align: center;
    color: var(--theme-primary-color, #007bff);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

.forgot-pass-link:hover {
    color: var(--theme-secondary-color, #0d1432);
    text-decoration: underline;
}

.dont-have {
	color: #7d879c;
    text-align: center;
    font-size: 13px;
}

.dont-have a {
	color: var(--theme-primary-color, #007bff);
    font-weight: 600;
}
.dont-have a:hover {
	color: var(--theme-secondary-color, #0d1432);
}

/* Custom Checkbox/Radio Styling for Register */
.modern-radio-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 12px;
}

.modern-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #4b566b;
}

.modern-radio input[type="radio"] {
    margin-right: 5px;
    accent-color: var(--theme-primary-color, #007bff);
}

.modern-checkbox-group {
    background: #f9fbfd;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e3e9ef;
    max-height: 80px; /* Very small max height */
    overflow-y: auto;
}

.modern-checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #4b566b;
    font-size: 12px;
    cursor: pointer;
}
.modern-checkbox-group label:last-child {
    margin-bottom: 0;
}

.modern-checkbox-group input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--theme-primary-color, #007bff);
}

/* Professional CSS Animation for Cities Box */
#d1 {
    display: block !important; /* Override any inline display:none */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px) scaleY(0.95);
    transform-origin: top center;
}

#d1.show-cities {
    max-height: 200px; /* enough to show the scrollable box */
    opacity: 1;
    transform: translateY(0) scaleY(1);
    margin-bottom: 12px; /* Margin when shown */
}