/* =============================================
   StonePro B2B — Auth Forms
   ============================================= */

   .stpro-form-wrap {
    max-width: 480px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-family: inherit;
}

.stpro-form-wrap h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #1a1a1a;
}

.stpro-subtitle {
    margin: 0 0 28px;
    color: #666;
    font-size: 14px;
}

/* Pola formularza */
.stpro-field {
    margin-bottom: 20px;
}

.stpro-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.stpro-field input[type="text"],
.stpro-field input[type="email"],
.stpro-field input[type="password"],
.stpro-field input[type="tel"],
.stpro-field input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.stpro-field input:focus {
    outline: none;
    border-color: #2c6fad;
    box-shadow: 0 0 0 3px rgba(44,111,173,0.12);
}

.stpro-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.required { color: #c00; }
.optional  { color: #999; font-weight: 400; font-size: 12px; }

/* NIP + przycisk w jednym wierszu */
.stpro-input-row {
    display: flex;
    gap: 10px;
}
.stpro-input-row input { flex: 1; }

/* Checkboxy */
.stpro-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}
.stpro-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.stpro-checkbox label span {
    display: block;
    text-align: left;
}
.stpro-checkbox label a {
    display: inline;
}

/* Przyciski */
.stpro-btn-primary {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}
.stpro-btn-primary:hover { background: #333; }

.stpro-btn-secondary {
    padding: 10px 16px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.stpro-btn-secondary:hover { background: #e0e0e0; }

/* Komunikaty */
.stpro-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.stpro-message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.stpro-message.error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* Tabs logowania */
.stpro-login-tab-wrap {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e5e5;
}
.stpro-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
}
.stpro-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.stpro-tab-content { display: none; }
.stpro-tab-content.active { display: block; }

/* Footer formularza */
.stpro-form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}
.stpro-form-footer a { color: #2c6fad; text-decoration: none; }
.stpro-form-footer a:hover { text-decoration: underline; }

/* Loading state */
.stpro-btn-primary.loading,
.stpro-btn-secondary.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Zewnętrzny przełącznik: Logowanie ↔ Rejestracja */
.stpro-auth-wrap .stpro-auth-tabs {
    display: flex;
    margin-bottom: 28px;
    border-bottom: 2px solid #e5e5e5;
    background: none;
}
.stpro-auth-wrap .stpro-auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: -2px;
    font-size: 16px;
    font-weight: 600;
    color: #999 !important;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.stpro-auth-wrap .stpro-auth-tab:hover {
    color: #000 !important;
}
.stpro-auth-wrap .stpro-auth-tab.active {
    color: #000 !important;
    border-bottom-color: #000 !important;
}
.stpro-auth-view { display: none; }
.stpro-auth-view.active { display: block; }

/* Wymuszony czarny przycisk główny (nadpisanie motywu) */
.stpro-form-wrap .stpro-btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.stpro-form-wrap .stpro-btn-primary:hover {
    background: #222 !important;
}