/* ==========================================================================
   Wholesaler register page (/wholesaler/register). Loaded only by
   wholesaler/auth/register.blade.php, which uses the guest layout (no site
   header). Same look as register.css; colours follow ds-theme.css.
   ========================================================================== */

.wr-page { min-height: 100vh; background: #f6f7fb; font-family: "Manrope", sans-serif; color: #334155; }

/* --- Hero --- */
.wr-page .wr-hero { position: relative; overflow: hidden; padding: 32px 16px 104px; text-align: center; color: #fff; background: linear-gradient(135deg, #1e1b4b 0%, #2e2a7a 60%, #3f51b5 100%); }
.wr-page .wr-hero::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.wr-page .wr-brand { position: relative; z-index: 1; display: inline-flex; margin-bottom: 22px; padding: 8px 14px; background: #fff; border-radius: 14px; }
.wr-page .wr-brand img { display: block; height: 40px; width: auto; }
.wr-page .wr-hero h1 { margin: 0 0 10px; font-family: "Manrope", sans-serif; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.wr-page .wr-hero p { max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: #d6d9f2; }

/* --- Card + sections --- */
.wr-page .wr-wrap { position: relative; z-index: 2; max-width: 880px; margin: -72px auto 0; padding: 0 16px 56px; }
.wr-page .wr-card { overflow: hidden; background: #fff; border: 1.5px solid #e7eaf3; border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(30, 27, 75, .35); }
.wr-page .wr-sec { padding: 26px 28px; border-bottom: 1px solid #e7eaf3; }
.wr-page .wr-sec-head { margin-bottom: 18px; }
.wr-page .wr-sec-head b { display: block; font-size: 16px; font-weight: 800; color: #1e1b4b; }
.wr-page .wr-sec-head small { font-size: 12.5px; color: #64748b; }

/* --- Fields --- */
.wr-page .wr-account { display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.wr-page .wr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wr-page .wr-row-addr { grid-template-columns: 1.3fr 1fr .8fr; }
.wr-page .wr-field { margin-bottom: 16px; }
.wr-page .wr-field > label,
.wr-page .wr-label-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #1e1b4b; }
.wr-page .wr-field label em,
.wr-page .wr-logo b em { font-style: normal; color: #dc2626; }
.wr-page .wr-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wr-page .wr-label-row label { margin: 0; }
.wr-page .wr-label-row a { font-size: 12.5px; font-weight: 800; color: #3f51b5; }
.wr-page .wr-label-row a:hover { text-decoration: underline; }

.wr-page .wr-control { width: 100%; height: 48px; padding: 0 14px; background: #f6f7fb; border: 1.5px solid #e7eaf3; border-radius: 12px; font-family: "Manrope", sans-serif; font-size: 14px; color: #1e1b4b; transition: border-color .2s, box-shadow .2s, background .2s; }
.wr-page .wr-control:focus { outline: 0; background: #fff; border-color: #3f51b5; box-shadow: 0 0 0 4px rgba(63, 81, 181, .12); }
.wr-page .wr-field.invalid .wr-control { background: #fff5f5; border-color: #fca5a5; }

.wr-page .wr-input { position: relative; }
.wr-page .wr-input .wr-control { padding-right: 48px; }
.wr-page .wr-has-prefix .wr-control { padding-left: 54px; padding-right: 14px; }
.wr-page .wr-prefix { position: absolute; top: 1.5px; bottom: 1.5px; left: 1.5px; display: grid; place-items: center; width: 44px; border-right: 1.5px solid #e7eaf3; border-radius: 11px 0 0 11px; font-size: 14px; font-weight: 700; color: #64748b; }
.wr-page .wr-eye { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; font-size: 18px; color: #64748b; cursor: pointer; }
.wr-page .wr-eye:hover { background: #eef0fb; color: #3f51b5; }

.wr-page .wr-hint { display: block; margin-top: 5px; font-size: 12px; color: #64748b; }
.wr-page .wr-error { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: #dc2626; }
.wr-page .wr-error:empty { display: none; }

/* --- Logo upload --- */
.wr-page .wr-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wr-page .wr-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 180px; margin: 0; padding: 12px; text-align: center; background: #f6f7fb; border: 1.5px dashed #cfd4ea; border-radius: 16px; cursor: pointer; transition: border-color .2s; }
.wr-page .wr-logo:hover { border-color: #3f51b5; }
.wr-page .wr-field.invalid .wr-logo { border-color: #fca5a5; background: #fff5f5; }
.wr-page .wr-logo-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: #fff; border: 1px solid #e7eaf3; border-radius: 14px; font-size: 26px; color: #3f51b5; }
.wr-page .wr-logo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.wr-page .wr-logo b { display: block; font-size: 13px; color: #1e1b4b; word-break: break-all; }
.wr-page .wr-logo small { font-size: 11.5px; color: #64748b; }

/* --- Select2 restyled to match the inputs --- */
.wr-page .select2-container--default .select2-selection--single,
.wr-page .select2-container--default .select2-selection--multiple { min-height: 48px; background: #f6f7fb; border: 1.5px solid #e7eaf3; border-radius: 12px; }
.wr-page .select2-container--default.select2-container--focus .select2-selection--multiple,
.wr-page .select2-container--default.select2-container--open .select2-selection--single,
.wr-page .select2-container--default.select2-container--open .select2-selection--multiple { background: #fff; border-color: #3f51b5; box-shadow: 0 0 0 4px rgba(63, 81, 181, .12); }
.wr-page .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 14px; line-height: 45px; font-size: 14px; color: #1e1b4b; }
.wr-page .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #64748b; }
.wr-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 45px; right: 8px; }
.wr-page .select2-container--default .select2-selection--multiple { padding: 5px 8px; }
.wr-page .select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.wr-page .select2-container--default .select2-selection--multiple .select2-selection__choice { display: inline-flex; align-items: center; margin: 0; padding: 4px 10px 4px 24px; background: #eef0fb; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #3f51b5; }
.wr-page .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { top: 50%; left: 6px; transform: translateY(-50%); height: auto; padding: 0 2px; border: 0; background: transparent; color: #3f51b5; opacity: .6; }
.wr-page .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background: transparent; opacity: 1; }
.wr-page .select2-container .select2-search--inline .select2-search__field { height: 30px; margin: 0; padding-left: 6px; font-family: "Manrope", sans-serif; font-size: 14px; }
.wr-page .wr-field.invalid .select2-selection { background: #fff5f5; border-color: #fca5a5; }

/* The dropdown is attached to <body>, outside .wr-page; this file only loads on this page */
.select2-container--open .select2-dropdown { overflow: hidden; border: 1.5px solid #e7eaf3; border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(30, 27, 75, .25); font-family: "Manrope", sans-serif; font-size: 14px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #3f51b5; }

/* --- Submit + links --- */
.wr-page .wr-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: #f6f7fb; }
.wr-page .wr-submit p { max-width: 420px; margin: 0; font-size: 13px; color: #64748b; }
.wr-page .wr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border: 0; border-radius: 14px; background: #3f51b5; font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; transition: background .2s; }
.wr-page .wr-btn:hover { background: #3343a0; }
.wr-page .wr-btn:disabled { opacity: .7; cursor: wait; }

.wr-page .wr-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; font-size: 14px; color: #64748b; }
.wr-page .wr-foot a { font-weight: 800; color: #3f51b5; }
.wr-page .wr-foot a:hover { text-decoration: underline; }

@media only screen and (max-width: 767px) {
    .wr-page .wr-account { grid-template-columns: 1fr; gap: 0; }
    .wr-page .wr-logo { flex-direction: row; justify-content: flex-start; height: auto; text-align: left; }
    .wr-page .wr-row,
    .wr-page .wr-row-addr { grid-template-columns: 1fr; gap: 0; }
    .wr-page .wr-sec { padding: 20px; }
    .wr-page .wr-submit { flex-direction: column; align-items: stretch; padding: 20px; }
    .wr-page .wr-btn { width: 100%; }
    .wr-page .wr-foot { flex-direction: column; align-items: center; }
}
