/* SimplHRM — scoped auth pages (signup, admin login, panel login) */

.simplhrm-auth-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(145deg, #eef3f8 0%, #e3edf7 42%, #f5f7fa 100%);
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: #2c3e50;
}

.simplhrm-auth-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 100vh;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px;
    box-sizing: border-box;
}

/* Brand / value panel */
.simplhrm-auth-brand {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px 32px 12px;
}

.simplhrm-auth-logo img {
    max-height: 52px;
    max-width: 200px;
    margin-bottom: 18px;
}

.simplhrm-auth-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1a3353;
    letter-spacing: -0.02em;
}

.simplhrm-auth-headline {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    color: #243b53;
    margin: 0 0 10px;
    max-width: 400px;
}

.simplhrm-auth-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #5a6c7d;
    margin: 0 0 18px;
    max-width: 400px;
}

.simplhrm-auth-quote {
    margin: 0 0 22px;
    padding: 14px 16px 14px 18px;
    border-left: 3px solid #e85d04;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
    color: #4a5f73;
    max-width: 400px;
}

.simplhrm-auth-feature {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simplhrm-auth-feature li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-size: 14px;
    color: #3d5166;
}

.simplhrm-auth-feature li:before {
    content: '\f00c';
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    color: #e85d04;
    font-size: 12px;
}

/* Form column */
.simplhrm-auth-main {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

.simplhrm-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(26, 51, 83, 0.1);
    padding: 32px 28px 26px;
    box-sizing: border-box;
    overflow: visible;
}

.simplhrm-auth-card-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #1a3353;
    text-align: center;
}

.simplhrm-auth-card-subtitle {
    margin: 0 0 8px;
    font-size: 14px;
    color: #5a6c7d;
    text-align: center;
    line-height: 1.5;
}

.simplhrm-auth-card-helper {
    margin: 0 0 22px;
    font-size: 13px;
    color: #7a8a99;
    text-align: center;
    line-height: 1.45;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f5;
}

.simplhrm-auth-form .form-group {
    margin-bottom: 16px;
}

.simplhrm-auth-form label,
.simplhrm-auth-form .control-label {
    font-weight: 600;
    font-size: 13px;
    color: #3d5166;
    margin-bottom: 6px;
}

.simplhrm-auth-form .form-control {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d8e0e8;
    box-shadow: none;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.simplhrm-auth-form .form-control:focus {
    border-color: #e85d04;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.simplhrm-auth-form textarea.form-control {
    height: auto;
    min-height: 80px;
}

.simplhrm-auth-form .input-icon {
    position: relative;
}

.simplhrm-auth-form .input-icon > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8b5;
    z-index: 2;
}

.simplhrm-auth-form .input-icon .form-control {
    padding-left: 38px;
}

.simplhrm-auth-form .input-group-addon {
    background: #f4f7fa;
    border-color: #d8e0e8;
    color: #6b7c8f;
}

.simplhrm-auth-btn-primary {
    display: inline-block;
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #e85d04 0%, #d84315 100%);
    color: #fff !important;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}

.simplhrm-auth-btn-primary:hover,
.simplhrm-auth-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 93, 4, 0.4);
}

.simplhrm-auth-btn-outline {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #e85d04;
    background: #fff;
    color: #e85d04 !important;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.simplhrm-auth-btn-outline:hover,
.simplhrm-auth-btn-outline:focus {
    background: #e85d04;
    color: #fff !important;
    text-decoration: none;
}

.simplhrm-auth-footer-link {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
    text-align: center;
    font-size: 14px;
    color: #5a6c7d;
}

.simplhrm-auth-footer-link a {
    font-weight: 600;
    color: #e85d04;
}

.simplhrm-auth-register-cta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf1f5;
    text-align: center;
}

.simplhrm-auth-register-cta p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #5a6c7d;
}

.simplhrm-auth-terms {
    font-size: 13px;
    color: #5a6c7d;
    line-height: 1.5;
    margin-bottom: 16px;
}

.simplhrm-auth-terms a {
    color: #e85d04;
}

.simplhrm-auth-recaptcha {
    overflow: visible;
    max-width: 100%;
    margin-bottom: 16px;
}

.simplhrm-auth-recaptcha__inner {
    overflow: visible;
    width: 100%;
    min-height: 78px;
}

.simplhrm-auth-recaptcha .g-recaptcha,
.simplhrm-auth-recaptcha iframe {
    max-width: 100%;
}

.simplhrm-auth-form .iti {
    width: 100%;
}

.simplhrm-auth-form .iti input[type="tel"] {
    width: 100%;
}

.simplhrm-auth-copyright {
    text-align: center;
    margin-top: 20px;
    color: #9aa8b5;
    font-size: 12px;
    width: 100%;
    max-width: 440px;
}

.simplhrm-auth-forgot {
    margin-top: 16px;
    font-size: 13px;
    color: #5a6c7d;
}

.simplhrm-auth-forgot h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #3d5166;
}

.simplhrm-auth-forgot a {
    color: #e85d04;
    font-weight: 600;
}

.simplhrm-auth-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.simplhrm-auth-form-actions label {
    font-weight: normal;
    font-size: 13px;
    margin: 0;
}

.simplhrm-auth-form-actions .simplhrm-auth-btn-primary {
    width: auto;
    min-width: 120px;
    padding: 10px 20px;
}

.simplhrm-auth-success {
    text-align: center;
}

.simplhrm-auth-success .alert {
    margin: 0;
    border-radius: 8px;
}

/* Panel login tabs */
.simplhrm-auth-card--tabs {
    padding-top: 24px;
}

.simplhrm-auth-tabs {
    margin-bottom: 20px;
}

.simplhrm-auth-tabs .nav-tabs {
    border-bottom: 1px solid #edf1f5;
    display: flex;
}

.simplhrm-auth-tabs .nav-tabs > li {
    flex: 1;
    text-align: center;
    margin-bottom: -1px;
}

.simplhrm-auth-tabs .nav-tabs > li > a {
    border-radius: 8px 8px 0 0;
    margin-right: 4px;
    color: #5a6c7d;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.simplhrm-auth-tabs .nav-tabs > li.active > a,
.simplhrm-auth-tabs .nav-tabs > li.active > a:hover,
.simplhrm-auth-tabs .nav-tabs > li.active > a:focus {
    color: #e85d04;
    background: #fff;
    border: 1px solid #edf1f5;
    border-bottom-color: #fff;
}

.simplhrm-auth-tabs .tab-content {
    padding-top: 4px;
}

.simplhrm-auth-tabs .btn-u,
.simplhrm-auth-tabs .btn-u.btn-block {
    border-radius: 8px;
    background: linear-gradient(135deg, #e85d04 0%, #d84315 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}

.simplhrm-auth-tabs hr {
    margin: 18px 0;
    border-color: #edf1f5;
}

/* Legacy class bridges */
.simplhrm-auth-login .logo,
.simplhrm-auth-page .logo {
    display: none;
}

.simplhrm-auth-login .content,
.simplhrm-auth-login .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.simplhrm-auth-login .reg-block {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.simplhrm-auth-login .reg-block-header {
    display: none;
}

@media (max-width: 767px) {
    .simplhrm-auth-shell {
        flex-direction: column;
        padding: 16px 12px;
        min-height: auto;
    }

    .simplhrm-auth-brand {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 8px 20px;
        order: 1;
    }

    .simplhrm-auth-headline,
    .simplhrm-auth-subtitle,
    .simplhrm-auth-quote {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .simplhrm-auth-feature {
        display: inline-block;
        text-align: left;
    }

    .simplhrm-auth-main {
        order: 2;
        width: 100%;
    }

    .simplhrm-auth-card {
        max-width: 100%;
        padding: 24px 18px 20px;
        border-radius: 12px;
    }

    .simplhrm-auth-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .simplhrm-auth-form-actions .simplhrm-auth-btn-primary {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .simplhrm-auth-recaptcha__inner {
        transform-origin: 0 0;
        transform: scale(0.92);
        width: 108.7%;
        min-height: 72px;
        margin-bottom: 2px;
    }
}

@media (max-width: 340px) {
    .simplhrm-auth-recaptcha__inner {
        transform: scale(0.86);
        width: 116.3%;
        min-height: 68px;
    }
}

/* Branded company login chooser (/fusion, /adcc, etc.) */
.simplhrm-branded-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.simplhrm-branded-login__card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 39, 68, 0.12);
    padding: 28px 28px 24px;
    text-align: center;
}

.simplhrm-branded-login__platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.simplhrm-branded-login__platform-logo {
    max-height: 22px;
    width: auto;
}

.simplhrm-branded-login__company-logo {
    max-height: 64px;
    width: auto;
    margin-bottom: 14px;
}

.simplhrm-branded-login__company h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #0f2744;
}

.simplhrm-branded-login__company p {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 15px;
}

.simplhrm-branded-login__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simplhrm-branded-login__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.simplhrm-branded-login__btn--primary {
    background: #1a3353;
    color: #fff !important;
}

.simplhrm-branded-login__btn--primary:hover {
    background: #234b73;
    color: #fff !important;
}

.simplhrm-branded-login__btn--secondary {
    background: #f1f5f9;
    color: #0f2744 !important;
    border: 1px solid #dde3ea;
}

.simplhrm-branded-login__btn--secondary:hover {
    background: #e2e8f0;
    color: #0f2744 !important;
}

.simplhrm-branded-login__hint {
    margin: 18px 0 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}
