:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #27ae60;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
}

body {
    background: none;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    height: 100vh;
}

/* Overlay for background image readability */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 62, 80, 0.45);
    z-index: 0;
}

.bsf-bg {
    min-height: 100vh;
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(rgba(30,40,55,0.88), rgba(30,40,55,0.88)), url('larvae.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
body.bsf-bg {
    display: block !important;
    position: static !important;
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: auto !important;
    align-items: unset !important;
    justify-content: unset !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.bsf-bg::before {
    /* Remove previous overlay, handled by .bsf-bg background */
    content: none;
}

.auth-container {
    background-color: rgba(255,255,255,0.28);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(44, 62, 80, 0.10);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.22);
    transition: background-color 0.4s, box-shadow 0.4s, border 0.4s;
    max-width: 420px;
    min-width: 320px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.logo img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}
.logo span {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}
.form-control {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.05rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f8f9fa;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.15rem rgba(39, 174, 96, 0.13);
    background: #fff;
    outline: none;
}
.input-icon {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: block;
}
.input-icon i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 2;
    font-size: 1.15rem;
    pointer-events: none;
}
.input-icon input {
    padding-left: 44px;
    width: 100%;
    box-sizing: border-box;
}
.input-icon.password-field input {
    padding-right: 44px;
}
.input-icon.password-field .password-toggle {
    right: 16px;
    left: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    cursor: pointer;
    z-index: 3;
    font-size: 1.15rem;
    pointer-events: auto;
}
.input-icon.password-field i.fas.fa-lock {
    left: 16px;
    right: auto;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.input-icon.password-field i.fas.fa-eye,
.input-icon.password-field i.fas.fa-eye-slash {
    right: 16px;
    left: auto;
    position: absolute;
    z-index: 3;
    pointer-events: auto;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2;
    font-size: 1.15rem;
}
.password-toggle:hover {
    color: var(--accent-color);
}
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color) 60%, #219a52 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.08);
    position: relative;
    letter-spacing: 0.03em;
}
.btn:hover {
    background: linear-gradient(90deg, #219a52 60%, var(--accent-color) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.13);
}
.btn:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}
.btn .spinner {
    display: none;
    margin-right: 8px;
}
.btn.loading .spinner {
    display: inline-block;
}
.links {
    margin-top: 1.5rem;
    font-size: 1rem;
    text-align: center;
}
.links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.links a:hover {
    color: #219a52;
    text-decoration: underline;
}
.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.04);
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.alert-danger {
    background-color: #fdecea;
    color: #d32f2f;
    border: 1px solid #ef9a9a;
}
.alert-success {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #a5d6a7;
}
.alert i {
    margin-right: 10px;
}
.hidden {
    display: none;
}
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    width: 100%;
}
.form-check input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent-color);
}
.form-check label {
    margin-bottom: 0;
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}
.auth-flex-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 2;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: auto;
}
@media (max-width: 900px) {
    .auth-flex-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.2rem 0;
        height: auto;
        min-height: 100vh;
    }
    .auth-container {
        max-width: 98vw;
        min-width: 0;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        max-height: 95vh;
    }
}
.company-info {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    background: rgba(255,255,255,0.32);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(44, 62, 80, 0.08);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin: 0;
    max-width: 420px;
    min-width: 320px;
    color: #234;
    text-align: center;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,0.18);
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: fadeInUp 1.1s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
    transition: box-shadow 0.4s, background 0.4s, border 0.4s, transform 0.5s;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.company-info h3 {
    font-family: 'Pacifico', 'Montserrat', cursive, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    transition: color 0.4s;
}
.company-info em {
    color: var(--accent-color);
    font-size: 1.15rem;
    font-style: italic;
    display: block;
    margin-bottom: 0.7rem;
    font-family: 'Montserrat', cursive, sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.4s;
}
.company-info p {
    margin-bottom: 0.6rem;
    font-size: 1.08rem;
    line-height: 1.6;
    transition: color 0.4s;
}
.company-statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2vw;
    margin: 0;
    background: none;
    box-shadow: none;
    border: none;
    max-width: 600px;
    min-width: 320px;
    color: #fff;
    text-align: left;
    z-index: 1;
    position: relative;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: fadeInUp 1.1s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
    transition: color 0.4s, transform 0.5s;
}
.company-statement h1 {
    font-family: 'Pacifico', 'Montserrat', cursive, sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.7rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 24px rgba(44,62,80,0.18);
    transition: color 0.4s;
}
.company-statement .tagline {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.2rem;
    font-family: 'Montserrat', cursive, sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(44,62,80,0.10);
    transition: color 0.4s;
}
.company-statement .mission {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #f8f9fa;
    margin-bottom: 0;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(44,62,80,0.10);
    transition: color 0.4s;
}
@media (max-width: 900px) {
    .company-statement {
        align-items: center;
        text-align: center;
        padding: 0 1vw;
        max-width: 98vw;
    }
    .company-statement h1 {
        font-size: 2.2rem;
    }
    .company-statement .tagline {
        font-size: 1.1rem;
    }
    .company-statement .mission {
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    .auth-container, .company-statement {
        max-width: 98vw;
        min-width: 0;
        padding: 1rem;
        max-height: 98vh;
    }
    .logo span {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 1.1rem;
    }
    .form-group label, .form-check label {
        font-size: 0.98rem;
    }
    .form-control {
        font-size: 0.98rem;
    }
} 