/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --rebrandy-primary-blue: #4F80FF;
    /* Przybliżony kolor niebieski z przycisku */
    --rebrandy-primary-green: #6B8E23;
    /* Przybliżony kolor zielony z przełącznika */
    --rebrandy-text-dark: #1A1A1A;
    --rebrandy-text-gray: #666666;
    --rebrandy-border-color: #E0E0E0;
    --rebrandy-bg-light: #F5F7FA;
    --rebrandy-input-bg: #FFFFFF;
    --rebrandy-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.rebrandy_registration_wrapper {
    max-width: 750px;
    /* Zwiększona szerokość formularza */
    margin: 40px auto;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--rebrandy-shadow);
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}

.rebrandy_registration_wrapper * {
    box-sizing: border-box;
}

.rebrandy_registration_title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--rebrandy-text-dark);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Switcher */
.rebrandy_type_switcher_wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.rebrandy_type_switcher {
    background: #F3F4F6;
    /* Bardzo jasne szare tło */
    border-radius: 999px;
    /* Pigułka */
    padding: 6px;
    /* Większy odstęp wewnętrzny - przycisk ma więcej miejsca od krawędzi */
    display: flex;
    justify-content: space-between;
    /* Rozłożenie przycisków */
    gap: 15px;
    /* Zmniejszony odstęp między przyciskami (15px) */
    width: 100%;
    max-width: 460px;
    /* Nieco szerszy kontener, żeby pomieścić szersze przyciski */
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Delikatny cień wewnętrzny dla głębi */
}

.rebrandy_switch_btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px 30px;
    /* Duże boczne paddingi (30px) dla przestrzeni */
    border-radius: 999px;
    /* Pigułka */
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    /* Nieco grubszy font */
    font-size: 14px;
    color: #8D99AE;
    /* Szary, stonowany kolor tekstu */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    text-align: center;
    white-space: nowrap;
}

.rebrandy_switch_btn.active {
    background: var(--rebrandy-primary-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(107, 142, 35, 0.3);
    /* Wyraźniejszy cień z kolorem przycisku */
}

/* Switcher Buttons Hover States */
.rebrandy_switch_btn.active:hover {
    color: #fff;
    /* Aktywny zawsze biały */
}

.rebrandy_switch_btn:not(.active):hover {
    color: #4A5568;
    /* Subtelny ciemny szary, nie czarny */
    background-color: rgba(0, 0, 0, 0.03);
    /* Bardzo delikatne tło dla feedbacku */
}

/* Forms */
.rebrandy_section_separator {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rebrandy_grid_row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.rebrandy_form_col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rebrandy_form_col.full-width {
    width: 100%;
}

.rebrandy_form_label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--rebrandy-text-dark);
}

.rebrandy_form_input {
    padding: 12px 15px;
    border: 1px solid var(--rebrandy-border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--rebrandy-text-dark);
    background: var(--rebrandy-input-bg);
    transition: border-color 0.2s;
    width: 100%;
    outline: none;
}

.rebrandy_form_input:focus {
    border-color: var(--rebrandy-primary-blue);
}

.rebrandy_form_input::placeholder {
    color: #BBB;
}

/* Terms */
.rebrandy_terms_row {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 12px;
    color: var(--rebrandy-text-gray);
    line-height: 1.5;
}

.rebrandy_checkbox_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.rebrandy_checkbox_label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    /* Custom checkbox styling could be added here if needed */
}

.rebrandy_checkbox_label a {
    color: var(--rebrandy-primary-blue);
    text-decoration: none;
}

/* Button */
.rebrandy_submit_btn {
    width: 100%;
    background: var(--rebrandy-primary-blue);
    color: #fff;
    border: none;
    padding: 5px 16px;
    /* Zmniejszony padding pionowy */
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rebrandy_submit_btn:hover {
    filter: brightness(1.1);
}

.rebrandy_submit_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Login Link */
.rebrandy_login_link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--rebrandy-text-gray);
}

.rebrandy_login_link a {
    color: var(--rebrandy-primary-blue);
    font-weight: 600;
    text-decoration: none;
}

/* Spinner */
.rebrandy_spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: rebrandy_spin 1s linear infinite;
    margin-left: 10px;
}

.rebrandy_submit_btn.loading .rebrandy_spinner {
    display: inline-block;
}

@keyframes rebrandy_spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Message */
.rebrandy_message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.rebrandy_message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rebrandy_message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 600px) {
    .rebrandy_grid_row {
        flex-direction: column;
        gap: 15px;
    }

    .rebrandy_registration_wrapper {
        padding: 30px 20px;
    }

    /* Switcher Mobile Fix */
    .rebrandy_type_switcher {
        gap: 5px;
        /* Minimalny odstęp */
    }

    .rebrandy_switch_btn {
        padding: 8px 5px;
        /* Mniejszy padding */
        font-size: 13px;
        /* Nieco mniejszy font */
        white-space: normal;
        /* Pozwól na załamanie tekstu w skrajnych przypadkach */
        line-height: 1.2;
    }
}