* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --space-1: 0.25rem;
    --space-4: 1rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --border-radius-md: 0.375rem;
    --transition-normal: 0.3s ease;
    --neutral-50: #f8fafc;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
}

.container {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #06132a 0%, #1a365d 100%);
}

.login-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    padding: 4rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #0f2447;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
    display: flex;
    margin-bottom: 1.5rem;
}

.input-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.opt-2{
    z-index: 10;
}
.icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.user-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.lock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.building-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v19'/%3E%3Cpath d='M6 12h12'/%3E%3Cpath d='M12 22v-4'/%3E%3C/svg%3E");
}

.input-wrapper {
    position: relative;
    flex: 1;
}

/* Updated input styles */
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-8) + var(--space-4));
    border: 1px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    background-color: transparent;
    font-size: 0.95rem;
    color: var(--neutral-800);
    transition: all var(--transition-normal);
    z-index: 1;
    position: relative;
}

/* Set placeholder to transparent to hide it visually but keep its functionality */
.input-wrapper input::placeholder {
    color: transparent;
}

/* Make sure select has proper z-index to allow for label visibility */
.input-wrapper select {
    z-index: 2;
    background-color: white;
}

/* Focus states for inputs */
.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: scaleX(1.03);
}

/* Label styling with improved floating animation */
.input-wrapper label {
    position: absolute;
    left: calc(var(--space-8) + var(--space-4));
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    pointer-events: none;
    padding: 0 var(--space-1);
    z-index: 9;
    background-color: transparent;
}

/* Label animation when input is focused or has content */
.input-wrapper input:focus + .icon + label,
.input-wrapper select:focus + .icon + label,
.input-wrapper input:not(:placeholder-shown) + .icon + label,
.input-wrapper select:valid + .icon + label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background-color: white;
    color: var(--primary-600);
    font-weight: 500;
    z-index: 3;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
}

.select-wrapper select {
    appearance: none;
    padding-right: var(--space-8);
}

button {
    width: 100%;
    padding: 1rem;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #2c5282;
}

.image-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-container img {
    width: 88%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .login-container,
    .image-container {
        width: 100%;
    }
    
    .image-container {
        order: -1;
        padding: 1rem;
    }
}

.error-message {
    background: #ffdddd;
    color: #a33;
    padding: 6px;
    margin-top: 8px;
    border: 1px solid #a33;
    border-radius: 5px;
    text-align: center;
}
