index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. <template>
  2. <div>
  3. <section
  4. id="quem-somos"
  5. class="relative min-h-screen flex flex-col bg-cover lg:bg-left"
  6. :style="{ backgroundImage: `url(${heroBackground})` }"
  7. >
  8. <div class="absolute inset-0 bg-violet-normal/45"/>
  9. <div class="relative z-10 flex-1 flex items-center">
  10. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full pt-8 pb-20 lg:py-18">
  11. <div class="flex flex-col lg:flex-row gap-4 lg:gap-12">
  12. <div class="max-w-2xl justifyBetween">
  13. <h1
  14. class="reveal text-h2 text-white font-black mb-10"
  15. style="font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900;"
  16. >
  17. {{ settings.hero_title }}
  18. </h1>
  19. <p class="reveal reveal-delay-1 text-white/90 mb-6 leading-relaxed" style="font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 600;">
  20. {{ settings.hero_subtitle }}
  21. </p>
  22. <div class="reveal reveal-delay-2 flex flex-col sm:flex-row gap-4">
  23. <button
  24. class="btn-primary"
  25. @click="scrollTo('associe-se')"
  26. >
  27. ASSOCIE-SE AGORA
  28. </button>
  29. <button
  30. class="btn-outline"
  31. @click="scrollTo('beneficios')"
  32. >
  33. CONHEÇA OS BENEFÍCIOS
  34. </button>
  35. </div>
  36. </div>
  37. <div class="reveal reveal-delay-3 flex flex-row lg:flex-col gap-6 lg:gap-8 shrink-0">
  38. <div class="flex flex-col items-start gap-1">
  39. <span class="material-icons text-white/90 text-3xl lg:text-4xl">group</span>
  40. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ settings.stat1_value }}</span>
  41. <span class="text-white/80 text-sm">{{ settings.stat1_label }}</span>
  42. </div>
  43. <div class="flex flex-col items-start gap-1">
  44. <span class="material-icons text-white/90 text-3xl lg:text-4xl">handshake</span>
  45. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ settings.stat2_value }}</span>
  46. <span class="text-white/80 text-sm">{{ settings.stat2_label }}</span>
  47. </div>
  48. <div class="flex flex-col items-start gap-1">
  49. <span class="material-icons text-white/90 text-3xl lg:text-4xl">favorite_border</span>
  50. <span class="text-white font-bold" style="font-size: clamp(1.25rem, 2.5vw, 1.75rem);">{{ settings.stat3_value }}</span>
  51. <span class="text-white/80 text-sm">{{ settings.stat3_label }}</span>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </section>
  58. <section id="beneficios" class="bg-neutral-light py-16 lg:py-24">
  59. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  60. <div class="reveal text-center mb-12 lg:mb-16">
  61. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  62. Benefícios para você
  63. </h2>
  64. </div>
  65. <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
  66. <div
  67. v-for="(benefit, index) in benefits"
  68. :key="benefit.id"
  69. :class="`reveal reveal-delay-${index + 1}`"
  70. class="benefit-card"
  71. >
  72. <div class="benefit-icon-wrap">
  73. <i :class="`mdi ${benefit.icon} text-violet-normal`" style="font-size: 1.5rem;" />
  74. </div>
  75. <h3 class="text-subtitle-1 font-semibold text-text mt-4 mb-2">
  76. {{ benefit.title }}
  77. </h3>
  78. <p class="text-body-2 text-text-2 leading-relaxed">
  79. {{ benefit.description }}
  80. </p>
  81. </div>
  82. </div>
  83. </div>
  84. </section>
  85. <section v-if="hasAbout" id="sobre-nos" class=" py-16 lg:py-24">
  86. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  87. <div v-if="aboutCards.length" class="reveal text-center mb-12 lg:mb-16">
  88. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  89. Quem somos
  90. </h2>
  91. </div>
  92. <div v-if="aboutCards.length" class="grid grid-cols-1 gap-6">
  93. <div
  94. v-for="(card, index) in aboutCards"
  95. :key="card.title"
  96. :class="`reveal reveal-delay-${index + 1}`"
  97. class="benefit-card"
  98. >
  99. <div class="benefit-icon-wrap">
  100. <i :class="`mdi ${card.icon} text-violet-normal`" style="font-size: 1.5rem;" />
  101. </div>
  102. <h3 class="text-subtitle-1 font-semibold text-text mt-4 mb-2">
  103. {{ card.title }}
  104. </h3>
  105. <p
  106. v-for="(paragraph, paragraphIndex) in card.paragraphs"
  107. :key="paragraphIndex"
  108. lang="pt-BR"
  109. class="text-body-2 text-text-2 text-justify hyphens-auto about-text"
  110. :class="{ 'mt-3': paragraphIndex > 0 }"
  111. >
  112. {{ paragraph }}
  113. </p>
  114. </div>
  115. </div>
  116. <template v-if="settings.about_history">
  117. <div
  118. class="reveal text-center mb-10 lg:mb-12"
  119. :class="{ 'mt-16 lg:mt-24': aboutCards.length }"
  120. >
  121. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  122. História
  123. </h2>
  124. </div>
  125. <div class="reveal reveal-delay-1 benefit-card history-card">
  126. <div class="benefit-icon-wrap">
  127. <i class="mdi mdi-book-open-page-variant-outline text-violet-normal" style="font-size: 1.5rem;" />
  128. </div>
  129. <p
  130. v-for="(paragraph, index) in historyParagraphs"
  131. :key="index"
  132. lang="pt-BR"
  133. class="text-body-1 text-text-2 text-justify hyphens-auto history-text"
  134. :class="index === 0 ? 'mt-5' : 'mt-4'"
  135. >
  136. {{ paragraph }}
  137. </p>
  138. </div>
  139. </template>
  140. </div>
  141. </section>
  142. <section v-if="events.length" id="eventos" class="bg-neutral-light py-16 lg:py-24">
  143. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  144. <div class="reveal text-center mb-12 lg:mb-16">
  145. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  146. Eventos
  147. </h2>
  148. </div>
  149. <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 items-start">
  150. <EventCard
  151. v-for="(event, index) in events"
  152. :key="event.id"
  153. :class="`reveal reveal-delay-${(index % 2) + 1}`"
  154. :event="event"
  155. />
  156. </div>
  157. </div>
  158. </section>
  159. <section id="associe-se" class="bg-violet-light py-16 lg:py-24">
  160. <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
  161. <div class="reveal text-center mb-10 lg:mb-12">
  162. <h2 class="text-h4 text-text" style="font-size: clamp(1.5rem, 3vw, 2.125rem);">
  163. Associe-se
  164. </h2>
  165. </div>
  166. <div class="reveal reveal-delay-1 max-w-3xl mx-auto">
  167. <div class="mb-0">
  168. <button class="tab-active">
  169. NOVA ASSOCIAÇÃO
  170. </button>
  171. </div>
  172. <div class="bg-white rounded-b-2xl rounded-tr-2xl shadow-md p-6 lg:p-10">
  173. <form novalidate @submit.prevent="handleSubmit" >
  174. <div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-6">
  175. <div class="field-group">
  176. <label class="field-label">Nome</label>
  177. <div :class="['field-input-wrap', { 'field-error': errors.nome }]">
  178. <span class="material-icons field-icon">person</span>
  179. <input
  180. v-model="form.nome"
  181. type="text"
  182. placeholder="Seu nome"
  183. class="field-input"
  184. @blur="onNameBlur('nome')"
  185. >
  186. </div>
  187. <span v-if="errors.nome" class="field-error-text">{{ errors.nome }}</span>
  188. </div>
  189. <div class="field-group">
  190. <label class="field-label">Sobrenome</label>
  191. <div :class="['field-input-wrap', { 'field-error': errors.sobrenome }]">
  192. <span class="material-icons field-icon">person</span>
  193. <input
  194. v-model="form.sobrenome"
  195. type="text"
  196. placeholder="Seu sobrenome"
  197. class="field-input"
  198. @blur="onNameBlur('sobrenome')"
  199. >
  200. </div>
  201. <span v-if="errors.sobrenome" class="field-error-text">{{ errors.sobrenome }}</span>
  202. </div>
  203. <div class="field-group">
  204. <label class="field-label">CPF</label>
  205. <div :class="['field-input-wrap', { 'field-error': errors.cpf }]">
  206. <span class="material-icons field-icon">badge</span>
  207. <input
  208. :value="form.cpf"
  209. type="text"
  210. placeholder="000.000.000-00"
  211. maxlength="14"
  212. class="field-input"
  213. @input="handleCPF"
  214. @blur="onCPFBlur"
  215. >
  216. </div>
  217. </div>
  218. <div class="field-group">
  219. <label class="field-label">Crachá</label>
  220. <div :class="['field-input-wrap', { 'field-error': errors.cracha }]">
  221. <span class="material-icons field-icon">credit_card</span>
  222. <input
  223. v-model="form.cracha"
  224. type="text"
  225. placeholder="Número do seu crachá"
  226. class="field-input"
  227. >
  228. </div>
  229. </div>
  230. <div class="field-group">
  231. <label class="field-label">E-mail</label>
  232. <div :class="['field-input-wrap', { 'field-error': errors.email }]">
  233. <span class="material-icons field-icon">email</span>
  234. <input
  235. v-model="form.email"
  236. type="email"
  237. placeholder="nome@conta.com"
  238. class="field-input"
  239. @blur="onEmailBlur"
  240. >
  241. </div>
  242. </div>
  243. <div class="field-group">
  244. <label class="field-label">Telefone</label>
  245. <div :class="['field-input-wrap', { 'field-error': errors.telefone }]">
  246. <span class="material-icons field-icon">phone</span>
  247. <input
  248. :value="form.telefone"
  249. type="tel"
  250. placeholder="(00) 00000-0000"
  251. maxlength="15"
  252. class="field-input"
  253. @input="handlePhone"
  254. @blur="onPhoneBlur"
  255. >
  256. </div>
  257. </div>
  258. <div class="field-group">
  259. <label class="field-label">Cargo</label>
  260. <div :class="['field-input-wrap', { 'field-error': errors.cargoId }]">
  261. <span class="material-icons field-icon">work</span>
  262. <select v-model="form.cargoId" class="field-input">
  263. <option :value="null" disabled>Selecione seu cargo</option>
  264. <option v-for="position in positions" :key="position.id" :value="position.id">
  265. {{ position.name }}
  266. </option>
  267. </select>
  268. </div>
  269. </div>
  270. <div class="field-group">
  271. <label class="field-label">Setor</label>
  272. <div :class="['field-input-wrap', { 'field-error': errors.setorId }]">
  273. <span class="material-icons field-icon">business</span>
  274. <select v-model="form.setorId" class="field-input">
  275. <option :value="null" disabled>Selecione seu setor</option>
  276. <option v-for="sector in sectors" :key="sector.id" :value="sector.id">
  277. {{ sector.name }}
  278. </option>
  279. </select>
  280. </div>
  281. </div>
  282. </div>
  283. <div class="flex justify-center">
  284. <button type="submit" class="btn-submit" :disabled="isLoading" :style="isLoading ? 'opacity: 0.7; cursor: not-allowed;' : ''">
  285. {{ isLoading ? 'ENVIANDO...' : 'ENVIAR SOLICITAÇÃO' }}
  286. </button>
  287. </div>
  288. </form>
  289. </div>
  290. </div>
  291. </div>
  292. </section>
  293. <Transition name="toast">
  294. <div
  295. v-if="showSuccess"
  296. class="fixed bottom-6 right-6 z-50 max-w-sm bg-violet-normal text-white px-5 py-4 rounded-xl shadow-xl flex items-start gap-3"
  297. >
  298. <span class="material-icons text-xl">check_circle</span>
  299. <span class="text-sm font-medium">
  300. Solicitação enviada com sucesso! Assim que a administração aprovar seu cadastro,
  301. use a opção "Meu Primeiro Acesso" no login para criar sua senha.
  302. </span>
  303. </div>
  304. </Transition>
  305. <Transition name="toast">
  306. <div
  307. v-if="showError"
  308. class="fixed bottom-6 right-6 z-50 bg-red-600 text-white px-5 py-4 rounded-xl shadow-xl flex items-center gap-3"
  309. >
  310. <span class="material-icons text-xl">error_outline</span>
  311. <span class="text-sm font-medium">{{ errorMessage }}</span>
  312. </div>
  313. </Transition>
  314. </div>
  315. </template>
  316. <script setup lang="ts">
  317. import heroBgFallback from '~/assets/images/imagem_fundo.png'
  318. useHead({ title: 'Serprati' })
  319. definePageMeta({ layout: 'default' })
  320. const { settings, benefits } = useCompanyData()
  321. const { events } = useEvents()
  322. const heroBackground = computed(() => settings.value.hero_background_url ?? heroBgFallback)
  323. const toParagraphs = (raw: string | null): string[] => {
  324. const content = raw?.trim()
  325. if (!content) return []
  326. const paragraphs: string[] = []
  327. let startNewParagraph = true
  328. for (const line of content.split(/\r?\n/)) {
  329. const text = line.trim()
  330. if (!text) {
  331. startNewParagraph = true
  332. continue
  333. }
  334. const previous = paragraphs[paragraphs.length - 1]
  335. const isWrappedLine = !!previous && previous.length >= 60 && !/[.!?:;]$/.test(previous)
  336. if (!startNewParagraph && isWrappedLine) {
  337. paragraphs[paragraphs.length - 1] = `${previous} ${text}`
  338. } else {
  339. paragraphs.push(text)
  340. }
  341. startNewParagraph = false
  342. }
  343. return paragraphs
  344. }
  345. const aboutCards = computed(() =>
  346. [
  347. { title: 'Visão', icon: 'mdi-eye-outline', text: settings.value.about_vision },
  348. { title: 'Missão', icon: 'mdi-bullseye-arrow', text: settings.value.about_mission },
  349. { title: 'Valores', icon: 'mdi-heart-outline', text: settings.value.about_values },
  350. ]
  351. .filter((card) => !!card.text?.trim())
  352. .map((card) => ({ ...card, paragraphs: toParagraphs(card.text) }))
  353. )
  354. const hasAbout = computed(() => aboutCards.value.length > 0 || !!settings.value.about_history?.trim())
  355. const historyParagraphs = computed(() => toParagraphs(settings.value.about_history))
  356. const scrollTo = (id: string) => {
  357. document.getElementById(id)?.scrollIntoView({ behavior: 'smooth' })
  358. }
  359. const form = reactive({
  360. nome: '',
  361. sobrenome: '',
  362. cpf: '',
  363. cracha: '',
  364. email: '',
  365. telefone: '',
  366. cargoId: null as number | null,
  367. setorId: null as number | null,
  368. })
  369. const formatCPF = (value: string): string => {
  370. return value
  371. .replace(/\D/g, '')
  372. .replace(/(\d{3})(\d)/, '$1.$2')
  373. .replace(/(\d{3})(\d)/, '$1.$2')
  374. .replace(/(\d{3})(\d{1,2})$/, '$1-$2')
  375. .slice(0, 14)
  376. }
  377. const validateCPF = (cpf: string): boolean => {
  378. const d = cpf.replace(/\D/g, '')
  379. if (d.length !== 11 || /^(\d)\1{10}$/.test(d)) return false
  380. const calc = (n: number): number => {
  381. let sum = 0
  382. for (let i = 0; i < n; i++) sum += parseInt(d.charAt(i)) * (n + 1 - i)
  383. const rem = sum % 11
  384. return rem < 2 ? 0 : 11 - rem
  385. }
  386. return calc(9) === parseInt(d.charAt(9)) && calc(10) === parseInt(d.charAt(10))
  387. }
  388. const validateEmail = (email: string): boolean =>
  389. /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)
  390. const formatPhone = (value: string): string =>
  391. value
  392. .replace(/\D/g, '')
  393. .replace(/^(\d{2})(\d)/, '($1) $2')
  394. .replace(/(\d{5})(\d{1,4})$/, '$1-$2')
  395. .slice(0, 15)
  396. const errors = reactive({
  397. nome: '',
  398. sobrenome: '',
  399. cpf: '',
  400. cracha: '',
  401. email: '',
  402. telefone: '',
  403. cargoId: '',
  404. setorId: '',
  405. })
  406. const clearErrors = () => {
  407. Object.keys(errors).forEach((key) => { errors[key as keyof typeof errors] = '' })
  408. }
  409. const validateRequired = (): boolean => {
  410. errors.nome = form.nome.trim() ? errors.nome : 'Campo obrigatório'
  411. errors.sobrenome = form.sobrenome.trim() ? errors.sobrenome : 'Campo obrigatório'
  412. errors.cracha = form.cracha.trim() ? '' : 'Campo obrigatório'
  413. errors.cargoId = form.cargoId ? '' : 'Campo obrigatório'
  414. errors.setorId = form.setorId ? '' : 'Campo obrigatório'
  415. errors.cpf = form.cpf.trim() ? errors.cpf : 'Campo obrigatório'
  416. errors.email = form.email.trim() ? errors.email : 'Campo obrigatório'
  417. errors.telefone = form.telefone.trim() ? errors.telefone : 'Campo obrigatório'
  418. return !Object.values(errors).some(Boolean)
  419. }
  420. const handleCPF = (e: Event) => {
  421. form.cpf = formatCPF((e.target as HTMLInputElement).value)
  422. if (errors.cpf) errors.cpf = ''
  423. }
  424. const handlePhone = (e: Event) => {
  425. form.telefone = formatPhone((e.target as HTMLInputElement).value)
  426. if (errors.telefone) errors.telefone = ''
  427. }
  428. const onNameBlur = (field: 'nome' | 'sobrenome') => {
  429. const value = form[field].trim()
  430. errors[field] = value && value.length < 3 ? 'Mínimo de 3 caracteres' : ''
  431. }
  432. const onCPFBlur = () => {
  433. errors.cpf = form.cpf && !validateCPF(form.cpf) ? 'CPF inválido' : ''
  434. }
  435. const onEmailBlur = () => {
  436. errors.email = form.email && !validateEmail(form.email) ? 'E-mail inválido' : ''
  437. }
  438. const onPhoneBlur = () => {
  439. errors.telefone = form.telefone && form.telefone.replace(/\D/g, '').length < 10 ? 'Telefone inválido' : ''
  440. }
  441. watch(() => form.email, () => { if (errors.email) errors.email = '' })
  442. watch(() => form.nome, () => { if (errors.nome) errors.nome = '' })
  443. watch(() => form.sobrenome, () => { if (errors.sobrenome) errors.sobrenome = '' })
  444. watch(() => form.cracha, () => { if (errors.cracha) errors.cracha = '' })
  445. watch(() => form.cargoId, () => { if (errors.cargoId) errors.cargoId = '' })
  446. watch(() => form.setorId, () => { if (errors.setorId) errors.setorId = '' })
  447. const { registerLandingUser, positions, sectors } = useRegisterApi()
  448. const isLoading = ref(false)
  449. const showSuccess = ref(false)
  450. const showError = ref(false)
  451. const errorMessage = ref('')
  452. const resetForm = () => {
  453. Object.assign(form, {
  454. nome: '',
  455. sobrenome: '',
  456. cpf: '',
  457. cracha: '',
  458. email: '',
  459. telefone: '',
  460. cargoId: null,
  461. setorId: null,
  462. })
  463. clearErrors()
  464. }
  465. const handleSubmit = async () => {
  466. onNameBlur('nome')
  467. onNameBlur('sobrenome')
  468. errors.cpf = form.cpf && !validateCPF(form.cpf) ? 'CPF inválido' : ''
  469. errors.email = form.email && !validateEmail(form.email) ? 'E-mail inválido' : ''
  470. errors.telefone = form.telefone && form.telefone.replace(/\D/g, '').length < 10 ? 'Telefone inválido' : ''
  471. if (!validateRequired()) return
  472. isLoading.value = true
  473. showError.value = false
  474. try {
  475. await registerLandingUser({
  476. name: form.nome,
  477. last_name: form.sobrenome,
  478. cpf: form.cpf,
  479. registration: form.cracha,
  480. email: form.email,
  481. phone: form.telefone,
  482. position_id: form.cargoId,
  483. sector_id: form.setorId,
  484. })
  485. showSuccess.value = true
  486. setTimeout(() => { showSuccess.value = false }, 9000)
  487. resetForm()
  488. } catch (err: unknown) {
  489. const error = err as { data?: { errors?: Record<string, string[]>; message?: string } }
  490. const firstError = error?.data?.errors
  491. ? Object.values(error.data.errors)[0]?.[0]
  492. : error?.data?.message
  493. errorMessage.value = firstError || 'Erro ao enviar solicitação. Tente novamente.'
  494. showError.value = true
  495. setTimeout(() => { showError.value = false }, 5000)
  496. } finally {
  497. isLoading.value = false
  498. }
  499. }
  500. onMounted(() => {
  501. const observer = new IntersectionObserver(
  502. (entries) => {
  503. entries.forEach((entry) => {
  504. if (entry.isIntersecting) {
  505. entry.target.classList.add('is-visible')
  506. observer.unobserve(entry.target)
  507. }
  508. })
  509. },
  510. { threshold: 0.1, rootMargin: '0px 0px -40px 0px' }
  511. )
  512. document.querySelectorAll('.reveal').forEach((el) => observer.observe(el))
  513. })
  514. </script>
  515. <style scoped>
  516. @media (max-width: 1023px) {
  517. #quem-somos {
  518. background-position: 8% 65%;
  519. }
  520. }
  521. .btn-primary {
  522. background: linear-gradient(90deg, #4d1658 0%, #8b30a5 100%);
  523. color: #ffffff;
  524. font-family: "Nunito", sans-serif;
  525. font-weight: 800;
  526. font-size: 0.875rem;
  527. letter-spacing: 1px;
  528. padding: 0.75rem 1.75rem;
  529. border-radius: 0.5rem;
  530. transition: opacity 0.2s;
  531. cursor: pointer;
  532. white-space: nowrap;
  533. }
  534. .btn-primary:hover {
  535. opacity: 0.88;
  536. }
  537. .btn-outline {
  538. background-color: rgba(102, 29, 117, 0.18);
  539. color: #ffffff;
  540. font-family: "Nunito", sans-serif;
  541. font-weight: 700;
  542. font-size: 0.875rem;
  543. letter-spacing: 1px;
  544. padding: 0.75rem 1.75rem;
  545. border-radius: 0.5rem;
  546. border: 2px solid #a855c8;
  547. transition: background-color 0.2s, border-color 0.2s;
  548. cursor: pointer;
  549. white-space: nowrap;
  550. }
  551. .btn-outline:hover {
  552. background-color: rgba(102, 29, 117, 0.32);
  553. border-color: #ffffff;
  554. }
  555. .benefit-card {
  556. background-color: #ffffff;
  557. border-radius: 1rem;
  558. padding: 1.75rem;
  559. box-shadow: 0 2px 12px rgba(102, 29, 117, 0.07);
  560. transition: box-shadow 0.2s, transform 0.2s;
  561. }
  562. .benefit-card:hover {
  563. box-shadow: 0 6px 24px rgba(102, 29, 117, 0.13);
  564. transform: translateY(-2px);
  565. }
  566. .history-card {
  567. padding: 2rem 1.75rem;
  568. }
  569. @media (min-width: 1024px) {
  570. .history-card {
  571. padding: 2.5rem 3rem;
  572. }
  573. }
  574. .about-text {
  575. line-height: 1.7;
  576. }
  577. .history-text {
  578. font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  579. line-height: 1.85;
  580. }
  581. .benefit-icon-wrap {
  582. display: inline-flex;
  583. align-items: center;
  584. justify-content: center;
  585. width: 48px;
  586. height: 48px;
  587. background-color: #f0e8f1;
  588. border-radius: 0.75rem;
  589. }
  590. .tab-active {
  591. background-color: #661d75;
  592. color: #ffffff;
  593. font-family: "Nunito", sans-serif;
  594. font-weight: 600;
  595. font-size: 0.75rem;
  596. letter-spacing: 1.25px;
  597. padding: 0.625rem 1.5rem;
  598. border-radius: 0.5rem 0.5rem 0 0;
  599. cursor: default;
  600. }
  601. .field-group {
  602. display: flex;
  603. flex-direction: column;
  604. gap: 0.375rem;
  605. }
  606. .field-label {
  607. font-family: "Nunito", sans-serif;
  608. font-size: 0.8125rem;
  609. font-weight: 600;
  610. color: #505050;
  611. }
  612. .field-input-wrap {
  613. display: flex;
  614. align-items: center;
  615. gap: 0.5rem;
  616. border: 1.5px solid #C0C0C0;
  617. border-radius: 0.5rem;
  618. padding: 0.5rem 0.75rem;
  619. background-color: #fefefe;
  620. transition: border-color 0.2s;
  621. }
  622. .field-input-wrap:focus-within {
  623. border-color: #661d75;
  624. }
  625. .field-input-wrap.field-error {
  626. border-color: #dc2626;
  627. }
  628. .field-error-text {
  629. font-family: "Nunito", sans-serif;
  630. font-size: 0.75rem;
  631. color: #dc2626;
  632. }
  633. .field-icon {
  634. font-size: 1.125rem;
  635. color: #b6b6b6;
  636. flex-shrink: 0;
  637. }
  638. .field-input {
  639. flex: 1;
  640. border: none;
  641. outline: none;
  642. background: transparent;
  643. font-family: "Nunito", sans-serif;
  644. font-size: 0.875rem;
  645. color: #161616;
  646. }
  647. .field-input::placeholder {
  648. color: #b6b6b6;
  649. }
  650. .btn-submit {
  651. background-color: #661d75;
  652. color: #ffffff;
  653. font-family: "Nunito", sans-serif;
  654. font-weight: 600;
  655. font-size: 0.875rem;
  656. letter-spacing: 1.25px;
  657. padding: 0.875rem 3rem;
  658. border-radius: 0.5rem;
  659. transition: background-color 0.2s;
  660. cursor: pointer;
  661. }
  662. .btn-submit:hover {
  663. background-color: #5c1a69;
  664. }
  665. .toast-enter-active,
  666. .toast-leave-active {
  667. transition: opacity 0.4s ease, transform 0.4s ease;
  668. }
  669. .toast-enter-from,
  670. .toast-leave-to {
  671. opacity: 0;
  672. transform: translateY(12px);
  673. }
  674. .justifyBetween {
  675. display: flex;
  676. flex-direction: column;
  677. justify-content: space-between;
  678. }
  679. </style>