@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #435ebe;
    --primary-dark: #2c4391;
    --bg-color: #f2f7ff;
    --card-bg: #ffffff;
    --text-main: #2a2a2a;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --input-bg: #f8f9fa;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    /* Prevent scrolling on desktop */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, hsla(253, 16%, 7%, 0) 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, hsla(225, 39%, 30%, 0) 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, hsla(339, 49%, 30%, 0) 50%);
}

/* Compact White Card */
.glass-card {
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 2rem 2.5rem;
    /* Reduced padding */
    width: 100%;
    max-width: 420px;
    /* Reduced width */
    text-align: center;
    color: var(--text-main);
    position: relative;
    z-index: 10;
    /* Ensure it fits on small vertical screens */
    max-height: 95vh;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

.glass-card::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Branding */
.auth-logo {
    margin-bottom: 1rem;
    /* Reduced margin */
}

.auth-logo img {
    height: 70px;
    /* Slightly reduced from user's 90px to fit better, but kept large enough */
}

.auth-title {
    font-size: 1.75rem;
    /* Slightly reduced */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    /* Reduced margin */
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
    /* Reduced margin */
    position: relative;
    text-align: left;
}

.form-control-glass {
    width: 100%;
    background: var(--input-bg);
    border: 2px solid transparent;
    outline: none;
    padding: 0.75rem 0.75rem 0.75rem 2.8rem;
    /* Reduced padding */
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-control-glass::placeholder {
    color: #a0a0a0;
}

.form-control-glass:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(67, 94, 190, 0.1);
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    /* Adjusted left */
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    /* Reduced icon size */
    pointer-events: none;
    transition: color 0.3s;
}

.form-control-glass:focus+.form-icon,
.form-group:focus-within .form-icon {
    color: var(--primary-color);
}

/* Button Styles */
.btn-glass {
    width: 100%;
    padding: 0.75rem;
    /* Reduced padding */
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 94, 190, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    /* Add slight top margin to separate from inputs */
}

.btn-glass:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 94, 190, 0.4);
}

/* Links & Footer */
.auth-footer {
    margin-top: 1.5rem;
    /* Reduced margin */
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Select Styling */
select.form-control-glass {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: var(--text-main);
}

select.form-control-glass option {
    background-color: #fff;
    color: var(--text-main);
}

/* Decorative Background Blobs - Made subtle/light for white theme */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #e0eaff;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #e6e6ff;
}

/* Toast Override */
.toast {
    background: #fff !important;
    color: var(--text-main) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

/* Responsive */
@media screen and (max-width: 500px) {
    .glass-card {
        padding: 1.5rem;
        box-shadow: none;
        background: transparent;
        max-width: 100%;
        border: none;
    }

    body {
        overflow-y: auto;
        /* Allow scroll on small mobile if needed */
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 2rem;
    }
}