/* PartnerHub — Login Page CSS */

.phb-login-wrap {
    min-height: calc(100vh - 64px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.phb-login-card {
    width: 100%;
    max-width: 420px;
}

/* Logo */
.phb-login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.phb-login-logo img,
.phb-login-logo .custom-logo {
    height: 44px;
    width: auto;
    display: block;
    margin: 0 auto 12px;
}
.phb-login-logo__sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #119c70;
    margin-bottom: 14px;
}

/* Lang switcher */
.phb-lang-switcher {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.phb-lang-btn {
    all: unset;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: color .15s, border-color .15s;
    font-family: inherit;
    box-sizing: border-box;
}
.phb-lang-btn:hover { color: #aaa; }
.phb-lang-btn.active { color: #119c70; border-color: rgba(17,156,112,.35); }

/* Notices */
.phb-login-notice {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    border: 1px solid;
}
.phb-login-notice--error {
    background: rgba(230,57,70,.08);
    border-color: rgba(230,57,70,.25);
    color: #f87171;
}
.phb-login-notice--success {
    background: rgba(17,156,112,.08);
    border-color: rgba(17,156,112,.25);
    color: #34d399;
}

/* Form box */
.phb-login-box {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
}

/* Tabs */
.phb-login-tabs {
    display: flex;
    background: #242424;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.phb-login-tab {
    all: unset;
    flex: 1;
    display: block;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: #aaaaaa;
    background: #242424;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    box-sizing: border-box;
    transition: color .15s, background .15s, border-color .15s;
}
.phb-login-tab + .phb-login-tab { border-left: 1px solid rgba(255,255,255,.06); }
.phb-login-tab.active {
    color: #f0f0f0;
    background: #1a1a1a;
    border-bottom-color: #119c70;
}
.phb-login-tab:not(.active):hover {
    color: #ffffff;
    background: #119c70;
}

.phb-login-inner { padding: 24px 28px 28px; }

/* Fields */
.phb-field { margin-bottom: 16px; }
.phb-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 7px;
}
.phb-input {
    all: unset;
    display: block;
    width: 100%;
    background: #242424;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 14px;
    color: #f0f0f0;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.phb-input:focus {
    border-color: #119c70;
    box-shadow: 0 0 0 3px rgba(17,156,112,.15);
    outline: none;
}
.phb-input::placeholder { color: #444; }
.phb-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #242424 inset;
    -webkit-text-fill-color: #f0f0f0;
}
.phb-input--error { border-color: #e63946 !important; }
.phb-input--ok    { border-color: #119c70 !important; }

.phb-field-hint {
    font-size: 11px;
    margin-top: 5px;
    color: #e63946;
    display: none;
}
.phb-field-hint.visible { display: block; }

.phb-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: -4px;
}
.phb-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}
.phb-check-label input[type=checkbox] {
    accent-color: #119c70;
    width: 14px;
    height: 14px;
}
.phb-forgot { font-size: 12px; color: #666; text-decoration: none; }
.phb-forgot:hover { color: #aaa; }

/* Submit button */
.phb-btn-submit {
    all: unset;
    display: block;
    width: 100%;
    padding: 12px;
    background: #119c70;
    color: #ffffff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .02em;
    text-align: center;
    box-sizing: border-box;
    transition: background .15s;
}
.phb-btn-submit:hover { background: #17c48d; }
.phb-btn-submit:active { background: #0d7a58; }
.phb-btn-submit:disabled { background: #1a6b51; cursor: not-allowed; opacity: .7; }

/* Registration */
.phb-reg-note {
    background: rgba(17,156,112,.07);
    border: 1px solid rgba(17,156,112,.2);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #5db896;
    line-height: 1.6;
    margin-bottom: 20px;
}
.phb-reg-note strong { color: #119c70; font-weight: 600; }
.phb-reg-row { display: flex; gap: 12px; }
.phb-reg-row .phb-field { flex: 1; min-width: 0; }

/* Panels */
.phb-login-panel { display: none; }
.phb-login-panel.active { display: block; }

/* Responsive */
@media (max-width: 480px) {
    .phb-login-inner { padding: 20px 18px 24px; }
    .phb-reg-row { flex-direction: column; gap: 0; }
}
