/* Base Reset & Background */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('static/images/Office-building.webp') no-repeat center center;
    background-size: cover;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px 10px;
}

/* Dark overlay with blur */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* The central login card */
.login-card {
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        #f9fbfc 20px,
        #f9fbfc 40px
    );
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 2;
    text-align: center;
    position: relative;
}

/* Logo and Header */
.logo {
    width: 140px; 
    margin-bottom: 15px;
}

.company-name {
    color: #344a5f;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    white-space: nowrap; 
}

.company-name span {
    font-weight: 400;
    color: #4a657a;
}

.portal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

/* Bootstrap Form Overrides */
.form-control {
    border-radius: 4px !important;
}
.form-control:focus {
    border-color: #344a5f !important;
    box-shadow: 0 0 0 0.25rem rgba(52, 74, 95, 0.25) !important;
}

/* Show Password Toggle */
.password-container {
    position: relative;
}

.show-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #666;
    cursor: pointer;
    z-index: 5;
    user-select: none;
}

.show-password-toggle:hover {
    color: #344a5f;
}

/* Sign In Button */
.btn-submit {
    background-color: #435b71 !important;
    color: #fff !important;
    padding: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease;
}

.btn-submit:hover, .btn-submit:focus {
    background-color: #2c3e50 !important;
    color: #fff !important;
}

/* Links & Notices */
.form-links a {
    color: #435b71;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

.security-notice {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin-top: 30px;
}

.security-notice strong {
    color: #222;
}

/* Make Bootstrap floating label background transparent to match autofilled inputs */
.form-floating > label,
.form-floating > label::after {
    background-color: transparent !important;
}

/* Responsive adjustments for mobile screen widths */
@media (max-width: 480px) {
    .company-name {
        white-space: nowrap !important;
        font-size: 18px !important;
    }
}
@media (max-width: 380px) {
    .company-name {
        white-space: nowrap !important;
        font-size: 15px !important;
    }
}