/* =========================================
   Jobprex – belépő / regisztrációs oldalak
   (cég regisztráció, jelszó-visszaállítás,
   admin belépés) egységes arculata
========================================= */

body.brand-auth {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: #1b2b2d;
    background:
        linear-gradient(rgba(238, 243, 239, 0.9), rgba(238, 243, 239, 0.9)),
        url("IMG/hero-bg-hr.png") center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px 16px;
}

body.brand-auth *,
body.brand-auth *::before,
body.brand-auth *::after {
    box-sizing: border-box;
}

.brand-auth .login-wrapper,
.brand-auth .invite-wrapper {
    min-height: 0;
    width: 100%;
    max-width: 460px;
    padding: 0;
    background: none;
    display: block;
}

.brand-auth .login-card,
.brand-auth .invite-card {
    width: 100%;
    max-width: none;
    background: #ffffff;
    border: 1px solid #dfe8e2;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 20px 45px rgba(18, 59, 42, 0.12);
}

.brand-auth .auth-logo {
    display: block;
    margin: 0 auto 26px;
    width: 190px;
    max-width: 70%;
}

.brand-auth .auth-logo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.brand-auth h1,
.brand-auth h2 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #1a5336;
    text-align: center;
}

.brand-auth .subtitle {
    margin: 0 0 26px;
    color: #4d5d5f;
    text-align: center;
    font-size: 15px;
}

.brand-auth form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-auth label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1b2b2d;
    margin: 0 0 6px;
}

.brand-auth .field-hint {
    font-weight: 400;
    color: #77868a;
}

.brand-auth .login-card input,
.brand-auth .invite-card input {
    width: 100%;
    padding: 12px 14px;
    margin: 0 0 16px;
    font: inherit;
    font-size: 15px;
    color: #1b2b2d;
    background: #f6f9f6;
    border: 1px solid #d3ddd6;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-auth .login-card input::placeholder,
.brand-auth .invite-card input::placeholder {
    color: #8a979a;
}

.brand-auth .login-card input:focus,
.brand-auth .invite-card input:focus {
    outline: none;
    border-color: #1a5336;
    box-shadow: 0 0 0 3px rgba(26, 83, 54, 0.15);
    background: #ffffff;
}

.brand-auth .btn,
.brand-auth .btn-primary {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #1a5336;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.brand-auth .btn:hover,
.brand-auth .btn-primary:hover {
    background: #123b2a;
    transform: translateY(-1px);
}

.brand-auth .btn:disabled {
    background: #9fb3a7;
    cursor: not-allowed;
    transform: none;
}

.brand-auth .error,
.brand-auth #formMessage {
    margin: 14px 0 0;
    font-size: 14px;
    text-align: center;
}

.brand-auth .error {
    color: #c62828;
}

.brand-auth .auth-back {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #1a5336;
    font-weight: 600;
    text-decoration: none;
}

.brand-auth .auth-back:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .brand-auth .login-card,
    .brand-auth .invite-card {
        padding: 28px 20px;
    }

    .brand-auth h1,
    .brand-auth h2 {
        font-size: 23px;
    }
}
