.shadow {
   margin-bottom: 0px;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    font-size: 16px;
    background-color: #f9f9f9;
    padding: 40px 20px;
}

.two_columns {
    display: flex;
    width: 90%;
    max-width: 900px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0px;
}

.left-part {
    flex: 1;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-part {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    max-width: calc(50% - 0px);
}

h1 {
    font-family: "Merriweather";
    font-size: 1.625rem;
    line-height: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 14px 12px 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    box-sizing: border-box;
}

.input-wrapper .floating-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: gray;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    background-color: none;
    padding: 0 4px;
}

.input-field:focus + .floating-label,
.input-field:not(:placeholder-shown) + .floating-label {
    top: 6px;
    left: 8px;
    font-size: 9px !important;
    color: #ef6c00;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    gap: 8px;
}

.checkbox-container.terms {
    display: flex;
    align-items: flex-start;
    margin: 15px 0 25px;
    font-size: 14px;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #ef6c00;
}

.terms-label a {
    color: #ef6c00;
    text-decoration: none;
}

.btn-submit {
    background: linear-gradient(135deg, #e63946, #b71c1c);
    color: white;
    padding: 12px;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    font-size: 16px;
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #b71c1c, #8b0000);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
    border-bottom: none;
}

a.btn-submit {
    text-decoration: none;
}

.link-row {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.link-row a {
    color: #ef6c00;
    text-decoration: none;
    font-weight: 500;
}

.invalid-feedback {
    color: red;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 10px;
    display: block;
}

/* Selecturi și câmpuri .all – același stil ca .input-field (formular companii) */
.register-container select,
.register-container .all {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.register-container select:focus,
.register-container .all:focus {
    border-color: #ef6c00;
}

/* Formular companii – titluri și secțiuni */
.register-form--company h1 {
    text-align: left;
}

.register-form--company h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #222;
    margin: 20px 0 10px 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register-form--company h2:first-of-type {
    margin-top: 0;
}

/* Câmpuri full-width în formular companii (evită limitarea lățimii) */
.register-form--company .input-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.register-form--company .input-container .input-field {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Eroare validare (formular companii) */
.error-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Mesaj de succes (similar cu error-container) */
.success-message-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.success-icon {
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.error-messages {
    flex-grow: 1;
}

.success-messages {
    flex-grow: 1;
}

.error-messages p {
    margin: 0;
    font-size: 14px;
}

.success-messages p {
    margin: 0;
    font-size: 14px;
}

.close-error {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #721c24;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.close-error:hover {
    color: #491217;
}

.close-success {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #155724;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-success:hover {
    color: #0c3d1a;
}

/* Parola + Repeta parola: aliniere la top ca ambele câmpuri să fie pe același rând vizual */
.register-container .two_half {
    align-items: flex-start;
}

/* Radio Persoană fizică / Companie – spațiu sub rând, rămân pe același rând și pe mobile */
.register-form--company .two_half:first-of-type {
    margin-bottom: 24px;
}

.register-container .two_half .half {
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-container .two_half input[type="radio"] {
    accent-color: #ef6c00;
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}

.register-container .two_half label {
    font-size: 14px;
    color: #222;
    cursor: pointer;
    margin: 0;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
}

.m-b-10 {
    margin-bottom: 10px;
}

.m-b-15 {
    margin-bottom: 15px;
}

.m-b-20 {
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Modal alegere rol (Mire / Furnizor) – se afișează mereu la /register fără type=company */
.register-role-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes registerRoleBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes registerRoleCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes registerRoleOptionIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-role-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: registerRoleBackdropIn 0.35s ease-out forwards;
}

.register-role-modal__card {
    position: relative;
    z-index: 1;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 52px 48px;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: registerRoleCardIn 0.4s ease-out 0.1s forwards;
    opacity: 0;
}

.register-role-modal__options {
    display: flex;
    gap: 28px;
}

.register-role-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    text-align: center;
    opacity: 0;
    animation: registerRoleOptionIn 0.4s ease-out forwards;
}

.register-role-option:nth-child(1) {
    animation-delay: 0.2s;
}

.register-role-option:nth-child(2) {
    animation-delay: 0.28s;
}

.register-role-modal__title {
    font-family: "Merriweather", serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 12px 0;
}

.register-role-modal__subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin: 0 0 44px 0;
}


.register-role-option:hover {
    border-color: #e63946;
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.15);
}

.register-role-option:active {
    transform: scale(0.98);
}

.register-role-option--link {
    text-decoration: none;
    color: inherit;
}

.register-role-option__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
}

.register-role-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-role-option__title {
    font-family: "Merriweather", serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #222;
}

.register-role-option__desc {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

.register-role-modal__login-hint {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.register-role-modal__login-hint-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d9c8b0, transparent);
}

.register-role-modal__login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.register-role-modal__login-link strong {
    color: #e63946;
    font-weight: 600;
}

.register-role-modal__login-link svg {
    color: #bbb;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.register-role-modal__login-link:hover {
    color: #555;
}

.register-role-modal__login-link:hover svg {
    color: #e63946;
    transform: translateX(2px);
}

.register-role-modal--hidden {
    display: none;
}

.register-form-wrap--hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .register-role-modal__backdrop,
    .register-role-modal__card,
    .register-role-option {
        animation: none;
        opacity: 1;
    }

    .register-role-option:nth-child(1),
    .register-role-option:nth-child(2) {
        animation-delay: 0s;
    }
}

@media (max-width: 768px) {
    .two_columns {
        flex-direction: column;
        width: 100%;
    }
    .right-part {
        padding: 20px;
        max-width: 100%
    }

    .image-container {
        width: 100%;
        height: 30vh !important;
        position: relative;
    }

    .register-container {
        min-height: 0px;
        padding-top: 20px;
    }

    .register-role-modal__options {
        flex-direction: column;
    }

    .register-role-modal__card {
        padding: 36px 24px;
    }

    .register-role-modal__title {
        font-size: 1.375rem;
    }

    .register-role-modal__subtitle {
        margin-bottom: 32px;
    }

    .register-role-option {
        padding: 28px 20px;
    }

    .register-form--company h1 {
        font-size: 1.375rem;
        line-height: 1.5;
    }

    .register-form--company h2 {
        font-size: 0.65rem;
    }

    /* Radio Persoană fizică / Companie – același rând și pe mobile */
    .register-form--company .two_half:first-of-type {
        flex-wrap: nowrap;
    }

    .register-form--company .two_half:first-of-type .half {
        width: auto;
        flex: 1;
        min-width: 0;
    }
}
/* ── Wizard hint – apare când utilizatorul vine din preview invitație ── */
.register-wizard-hint {
    background: linear-gradient(135deg, rgba(201,169,110,0.1) 0%, rgba(232,200,122,0.08) 100%);
    border: 1px solid rgba(201,169,110,0.35);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    color: #5a4a30;
    margin-bottom: 20px;
    line-height: 1.5;
}

.register-wizard-hint strong {
    color: #8b6914;
    font-weight: 600;
}
