/* ============================================
   Login Page Styles — Impact Hiring
   ============================================ */

/* ---------- full-page wrapper ---------- */
.login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eef9 50%, #f5f7fb 100%);
}

/* ---------- card container ---------- */
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(16, 110, 234, 0.10), 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 960px;
    width: 100%;
}

/* ---------- left visual panel ---------- */
.login-visual {
    background: linear-gradient(160deg, #106eea 0%, #0b57c0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    min-height: 100%;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 1;
    pointer-events: none;
}

.login-visual-img {
    width: 85%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20);
    position: relative;
    z-index: 1;
}

.login-visual h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 28px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-visual p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    margin-top: 8px;
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
}

/* ---------- right form panel ---------- */
.login-form-panel {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.login-brand img {
    height: 40px;
    width: auto;
}

.login-brand span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
}

.login-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-subheading {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 28px;
}

/* ---------- form fields ---------- */
.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}

.login-form label .required-star {
    color: #e74c3c;
    margin-left: 2px;
}

.login-form .form-control {
    height: 46px;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 16px 10px 44px;
    font-size: 0.92rem;
    color: #344054;
    background-color: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.login-form .form-control:focus {
    border-color: #106eea;
    box-shadow: 0 0 0 3px rgba(16, 110, 234, 0.12);
    background-color: #fff;
    outline: none;
}

.login-form .form-control::placeholder {
    color: #98a2b3;
}

.login-form .input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.login-form .form-group:focus-within .input-icon-left {
    color: #106eea;
}

/* password field wrapper */
.login-form .password-wrapper {
    position: relative;
}

.login-form .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #98a2b3;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: color 0.2s;
    z-index: 2;
}

.login-form .password-toggle:hover {
    color: #106eea;
}

/* password row: label left, show-password right */
.login-form .password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.login-form .show-password-check {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #667085;
    cursor: pointer;
    user-select: none;
}

.login-form .show-password-check input[type="checkbox"] {
    accent-color: #106eea;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ---------- captcha area ---------- */
.captcha-section {
    background: #f8f9fc;
    border: 1.5px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.captcha-section label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 10px;
    display: block;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-image-container {
    flex-shrink: 0;
}

.captcha-image-container img {
    height: 44px;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
}

.captcha-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.captcha-actions .btn-captcha-action {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d0d5dd;
    background: #fff;
    color: #667085;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-actions .btn-captcha-action:hover {
    border-color: #106eea;
    color: #106eea;
    background: #f0f4ff;
}

.captcha-input-wrapper {
    flex: 1;
    min-width: 120px;
    position: relative;
}

.captcha-input-wrapper .form-control {
    height: 42px;
    padding-left: 14px;
    font-size: 0.92rem;
    letter-spacing: 3px;
    text-align: center;
    font-weight: 600;
}

/* ---------- submit button ---------- */
.login-form .btn-login {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #106eea 0%, #0b57c0 100%);
    border: none;
    color: #fff;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(16, 110, 234, 0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.login-form .btn-login:hover {
    background: linear-gradient(135deg, #0b57c0 0%, #094aaa 100%);
    box-shadow: 0 6px 20px rgba(16, 110, 234, 0.35);
    transform: translateY(-1px);
}

.login-form .btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 110, 234, 0.2);
}

/* ---------- forgot password link ---------- */
.login-forgot {
    text-align: center;
    margin-top: 16px;
}

.login-forgot a {
    color: #106eea;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.login-forgot a:hover {
    color: #0b57c0;
    text-decoration: underline;
}

/* ---------- alert styling override ---------- */
.login-form .alert-danger {
    border-radius: 10px;
    border: none;
    background: #fef3f2;
    color: #b42318;
    font-size: 0.88rem;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .alert-danger::before {
    content: "\ea0d";
    font-family: "IcoFont";
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- divider ---------- */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #98a2b3;
    font-size: 0.82rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e7ec;
}

.login-divider span {
    padding: 0 12px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767.98px) {
    .login-wrapper {
        padding: 20px 10px;
        min-height: auto;
    }

    .login-card {
        border-radius: 12px;
    }

    .login-visual {
        padding: 32px 24px;
        min-height: auto;
    }

    .login-visual-img {
        width: 60%;
        max-width: 200px;
    }

    .login-visual h2 {
        font-size: 1.2rem;
        margin-top: 18px;
    }

    .login-visual p {
        font-size: 0.85rem;
    }

    .login-form-panel {
        padding: 32px 24px;
    }

    .login-heading {
        font-size: 1.35rem;
    }

    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-row > * {
        justify-content: center;
    }

    .captcha-image-container {
        text-align: center;
    }

    .captcha-actions {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .login-form-panel {
        padding: 24px 18px;
    }

    .login-visual {
        padding: 24px 18px;
    }
}
