/* =====================================================
   Employee auth pages (login + forgot password)
   Place at: public/css/employee-auth.css
   Image paths are relative to this file (public/css/).
   ===================================================== */

.background * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== MAIN CONTAINER ========== */
.background {
    margin-left: -15px;
    margin-right: -15px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background: url("../img/employee-login-bg.png") center center / cover no-repeat;
}

.login-form-bg {
    width: 88%;
    max-width: 1200px;
    min-height: 620px;
    height: calc(100vh - 60px);
    max-height: 760px;
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    background: url("../img/employee-login-secondary-bg.png") center center / cover no-repeat;
}

.login-form-bg .left {
    width: 58%;
    height: 100%;
}

.login-form-bg .right {
    width: 42%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== CARD ========== */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 34px 30px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(30, 80, 130, 0.12);
}

.logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef6ff;
}

.logo-circle span {
    font-size: 24px;
    font-weight: 700;
    color: #123d91;
}

.logo-circle i {
    font-size: 28px;
    color: #123d91;
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.login-logo span { color: #123d91; }
.login-logo b    { color: #45d3b0; }

.tagline {
    display: block;
    margin-top: 2px;
    line-height: 1;
    font-size: 11px;
    font-weight: 400;
    color: #173e7e;
}

.login-card h2 {
    margin-top: 22px;
    font-size: 22px;
    font-weight: 700;
    color: #102b55;
}

.subtitle {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #7186a2;
}

.status-msg {
    margin-top: 18px;
    padding: 10px 12px;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    background: #e8f7ee;
    color: #1b7a43;
    font-size: 13px;
    text-align: left;
}

.status-msg.status-error {
    border-left-color: #dc3545;
    background: #fcebec;
    color: #a71d2a;
}

/* ========== FORM ========== */
.login-card form {
    margin-top: 24px;
    text-align: left;
}

.input-box {
    position: relative;
    width: 100%;
    height: 46px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    border: 1px solid #dce6f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box:focus-within {
    border-color: #0879ed;
    box-shadow: 0 0 0 3px rgba(8, 121, 237, 0.12);
}

.input-box > i:first-child {
    flex: 0 0 42px;
    text-align: center;
    color: #7186a2;
    font-size: 14px;
}

.input-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 40px 0 4px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #334e70;
}

.input-box input::placeholder { color: #9aaabd; }

.password-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7186a2;
    font-size: 14px;
    cursor: pointer;
}

.password-eye:hover { color: #0879ed; }

.help-block {
    display: block;
    margin: -8px 0 10px;
    font-size: 12px;
    color: #e3342f;
    text-align: left;
}

/* ========== BUTTON & LINKS ========== */
.login-btn {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: 8px;
    background: #0879ed;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-btn i      { margin-left: 8px; }
.login-btn:hover  { background: #066dcc; }
.login-btn:active { transform: scale(0.99); }

.forgot-link,
.back-link {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
    color: #0879ed;
    text-decoration: none;
}

.forgot-link:hover,
.back-link:hover { text-decoration: underline; }

.back-link i { margin-right: 5px; }

/* ========== SMALL DESKTOP ========== */
@media (max-width: 1199px) {
    .login-form-bg { width: 92%; }
}

/* ========== TABLET ========== */
@media (max-width: 991px) {
    .background { padding: 24px 0; }

    .login-form-bg {
        width: 92%;
        min-height: 560px;
        height: auto;
        max-height: none;
    }

    .login-form-bg .left  { width: 42%; }
    .login-form-bg .right { width: 58%; padding: 24px 16px; }

    .login-card {
        max-width: 380px;
        padding: 30px 24px;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {
    .background { padding: 16px 0; }

    .login-form-bg {
        width: calc(100% - 32px);
        min-height: 0;
        height: auto;
        border-radius: 16px;
    }

    .login-form-bg .left  { display: none; }
    .login-form-bg .right { width: 100%; padding: 14px; }

    .login-card {
        max-width: 70%;
        padding: 26px 18px;
        border-radius: 12px;
    }

    .logo-circle { width: 62px; height: 62px; }
    .logo-circle span { font-size: 21px; }
    .logo-circle i { font-size: 24px; }
    .login-logo { font-size: 25px; }
    .login-card h2 { margin-top: 18px; font-size: 20px; }

    /* 16px stops iOS Safari zooming on focus */
    .input-box input { font-size: 16px; }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 400px) {
    .login-form-bg { width: calc(100% - 20px); }
    .login-form-bg .right { padding: 10px; }
    .login-card { padding: 22px 14px; }
}

/* ========== LANDSCAPE PHONES ========== */
@media (max-height: 520px) and (orientation: landscape) {
    .background { align-items: flex-start; }
    .login-form-bg { height: auto; min-height: 0; }
}