@use '../abstracts/variables' as *; @use '../abstracts/color-functions' as *; @use '../abstracts/mixins' as *; // ----------------------------------------------------------------------------- // Service Introduction Page Styles // Figma Design (352:15) - DJBank 개발자포탈 소개 // ----------------------------------------------------------------------------- // ============================================================================= // Variables (signup-guide 등에서 공유) // ============================================================================= $service-primary-blue: #0049b4; $service-secondary-blue: #0066dd; $service-icon-cyan: #00acdd; $service-icon-blue: #008ae2; $service-bg: #f9fafb; $service-text-dark: #1e2939; $service-text-gray: #4a5565; $service-card-border: #f3f4f6; $service-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); $service-card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); // ============================================================================= // DJBank 개발자포탈 소개 (Figma 352:15 기반) // ============================================================================= .service-intro { max-width: 1200px; margin: 0 auto; padding: 20px; background-color: #fff; color: #000; font-family: '원신한', 'OneShinhan', 'Spoqa Han Sans Neo', sans-serif; display: flex; flex-direction: column; gap: 20px; &__title { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; } &__lead { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; } &__desc { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.7; } &__spacer { height: 10px; } &__section-title { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.5; } &__section-body { font-size: 15px; font-weight: 500; line-height: 1.7; p { margin: 0; & + p { margin-top: 8px; } } } &__list { margin: 0; padding-left: 22px; list-style: disc; font-size: 15px; font-weight: 500; line-height: 1.7; li + li { margin-top: 4px; } } } @media (max-width: 768px) { .service-intro { padding: 16px; gap: 16px; &__title { font-size: 22px; } &__lead { font-size: 17px; } &__section-title { font-size: 17px; } &__desc, &__section-body, &__list { font-size: 14px; } } } // ============================================================================= // 회원가입 안내 페이지 (Figma 디자인 기반 - New) // ============================================================================= .signup-guide { max-width: 1200px; margin: 0 auto; padding: 64px 20px 80px; background-color: $service-bg; // Header Section &__header { margin-bottom: 64px; } &__title { font-size: 48px; font-weight: 700; line-height: 1; color: $service-primary-blue; margin: 0 0 22px 0; } &__underline { width: 96px; height: 4px; background-color: $service-primary-blue; margin-bottom: 36px; } &__desc { p { font-size: 20px; font-weight: 400; line-height: 1.625; color: $service-text-dark; margin: 0; } } // Step Process Card &__card { background: #fff; border-radius: 16px; padding: 48px 50px; box-shadow: $service-card-shadow-lg; margin-bottom: 64px; } &__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; } &__step { display: flex; flex-direction: column; align-items: center; position: relative; &--last { .signup-guide__step-line { display: none; } } } &__step-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1.6px solid $service-primary-blue; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; svg { width: 32px; height: 32px; } } &__step-dot { width: 12px; height: 12px; background-color: $service-primary-blue; border-radius: 50%; margin-top: 12px; position: relative; z-index: 2; } &__step-label { display: flex; flex-direction: column; align-items: center; margin-top: 8px; text-align: center; } &__step-num { font-size: 14px; font-weight: 400; color: #6a7282; line-height: 20px; } &__step-text { font-size: 14px; font-weight: 700; color: $service-text-dark; line-height: 20px; margin-top: 4px; white-space: nowrap; } &__step-line { position: absolute; top: 32px; left: calc(50% + 32px); width: calc(100% - 32px); height: 2px; background: linear-gradient(to right, $service-primary-blue, rgba(0, 73, 180, 0.3)); z-index: 1; } // Notes Section &__notes { margin-bottom: 48px; } &__note { display: flex; align-items: flex-start; gap: 8px; font-size: 18px; font-weight: 400; line-height: 32px; color: $service-text-dark; margin: 0 0 16px 0; &:last-child { margin-bottom: 0; } } &__note-mark { flex-shrink: 0; width: 18px; } // Action Button &__action { text-align: center; padding-top: 16px; } &__btn { display: inline-block; padding: 18px 64px; background: $service-primary-blue; color: #fff; font-size: 18px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease; &:hover { background: darken($service-primary-blue, 10%); transform: translateY(-2px); } &:active { transform: translateY(0); } } } // ============================================================================= // Responsive Styles - Signup Guide // ============================================================================= @media (max-width: 1024px) { .signup-guide { padding: 48px 24px 64px; &__title { font-size: 36px; } &__steps { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; } &__step { &:nth-child(3) { .signup-guide__step-line { display: none; } } } &__step-line { width: calc(100% - 24px); } } } @media (max-width: 768px) { .signup-guide { padding: 32px 16px 48px; &__header { margin-bottom: 32px; } &__title { font-size: 28px; } &__underline { width: 64px; height: 3px; margin-bottom: 24px; } &__desc { p { font-size: 16px; line-height: 1.75; } } &__card { padding: 32px 20px; margin-bottom: 32px; } &__steps { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } &__step { &:nth-child(2n) { .signup-guide__step-line { display: none; } } &:nth-child(3) { .signup-guide__step-line { display: block; } } } &__step-icon { width: 56px; height: 56px; svg { width: 28px; height: 28px; } } &__step-dot { width: 10px; height: 10px; } &__step-text { font-size: 13px; white-space: normal; } &__step-line { top: 28px; left: calc(50% + 28px); width: calc(100% - 28px); } &__notes { margin-bottom: 32px; } &__note { font-size: 14px; line-height: 24px; } &__btn { padding: 16px 48px; font-size: 16px; width: 100%; max-width: 320px; } } } @media (max-width: 480px) { .signup-guide { &__steps { grid-template-columns: 1fr; gap: 24px; } &__step { flex-direction: row; align-items: center; gap: 16px; .signup-guide__step-line { display: none !important; } } &__step-icon { flex-shrink: 0; } &__step-dot { display: none; } &__step-label { align-items: flex-start; margin-top: 0; text-align: left; } } } // ============================================================================= // 회원가입 안내 페이지 (Legacy - 기존 클래스 호환성 유지) // ============================================================================= .service_guide_header { padding: 56px 16px 32px; text-align: center; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); .service_guide { .title { font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.02em; color: #140064; margin-bottom: 16px; } .detail { font-size: 14px; font-weight: 400; line-height: 22px; color: #495057; } } } .service_guide_image { padding: 32px 16px; text-align: center; background: #fff; img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } } .service_guide_info { padding: 24px 16px; text-align: center; .info_text { font-size: 14px; line-height: 24px; color: #212529; margin-bottom: 12px; strong { color: #140064; font-weight: 600; } } .info_notice { font-size: 13px; color: #0049B4; font-weight: 500; } } .service_member_table { padding: 16px; table { width: 100%; border-collapse: collapse; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; th, td { padding: 16px; font-size: 14px; line-height: 22px; border-bottom: 1px solid #dee2e6; } th { background: #f8f9fa; color: #140064; font-weight: 600; text-align: center; vertical-align: middle; } td { color: #495057; text-align: left; } tr:last-child th, tr:last-child td { border-bottom: none; } } } .service_guide_notice { padding: 16px; text-align: center; .notice_text { font-size: 13px; color: #0049B4; font-weight: 500; line-height: 20px; } } .service_guide_action { padding: 32px 16px 56px; text-align: center; .btn_register { display: inline-block; padding: 16px 48px; background: #140064; color: #fff; font-size: 16px; font-weight: 600; border-radius: 8px; text-decoration: none; transition: background 0.2s ease; &:hover { background: #0049B4; } } } // ============================================================================= // PC 반응형 스타일 (Legacy) // ============================================================================= @media (min-width: 768px) { .service_guide_header { padding: 80px 32px 48px; .service_guide { .title { font-size: 40px; line-height: 48px; } .detail { font-size: 18px; line-height: 28px; } } } .service_guide_image { padding: 48px 32px; img { max-width: 800px; } } .service_guide_info { padding: 32px; .info_text { font-size: 16px; line-height: 28px; } .info_notice { font-size: 14px; } } .service_member_table { padding: 32px; max-width: 800px; margin: 0 auto; table { th, td { padding: 20px 24px; font-size: 15px; } } } .service_guide_notice { padding: 24px 32px; .notice_text { font-size: 14px; } } .service_guide_action { padding: 48px 32px 80px; .btn_register { padding: 18px 64px; font-size: 18px; } } } // ============================================================================= // OAuth2 인증 가이드 (Figma 367:1054 — OAuth2 인증가이드 V2) // ============================================================================= $oguide-primary: #0049b4; $oguide-secondary: #c3dfea; $oguide-bg-soft: #EDF9FE; $oguide-bg-light: #F8FAFC; $oguide-text-dark: #1A1A2E; $oguide-text-gray: #64748B; $oguide-text-mute: #94A3B8; $oguide-border: #E2E8F0; $oguide-accent-cyan: #00D4FF; $oguide-accent-yellow: #FFD93D; $oguide-accent-green: #6BCF7F; .oauth2-guide { max-width: 1200px; margin: 0 auto; padding: 20px; background-color: #FFFFFF; color: $oguide-text-dark; font-family: '원신한', 'OneShinhan', 'Spoqa Han Sans Neo', sans-serif; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; // -- common eyebrow / heading ----------------------------------------------- &__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: $oguide-primary; letter-spacing: 1.2px; margin-bottom: 8px; } &__h2 { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.3; color: $oguide-text-dark; } // -- Section 1: Hero -------------------------------------------------------- &__hero { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 60px 80px; border-radius: 20px; border: 1px solid $oguide-border; background: linear-gradient(135deg, $oguide-bg-soft 0%, #FFFFFF 100%); } &__hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid $oguide-secondary; color: $oguide-primary; font-size: 13px; font-weight: 600; margin-bottom: 20px; } &__hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: $oguide-primary; } &__hero-title { margin: 0 0 16px; font-size: 44px; font-weight: 800; color: $oguide-text-dark; letter-spacing: -0.5px; line-height: 1.2; } &__hero-lead { margin: 0; font-size: 17px; font-weight: 500; color: $oguide-text-gray; line-height: 1.6; & + & { margin-top: 2px; } } &__hero-chips { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; } &__chip { display: inline-flex; align-items: center; padding: 6px 18px; border-radius: 15px; background: #FFFFFF; border: 1px solid $oguide-border; font-size: 13px; font-weight: 600; color: $oguide-text-dark; } &__hero-illust { align-self: center; background: #FFFFFF; border: 1px solid $oguide-secondary; border-radius: 24px; overflow: hidden; svg { display: block; width: 100%; height: auto; } } // -- Section 2: Definition -------------------------------------------------- &__definition { display: grid; grid-template-columns: 220px 1fr; border: 1px solid $oguide-border; border-radius: 16px; background: #FFFFFF; overflow: hidden; } &__definition-icon { background: $oguide-bg-light; display: flex; align-items: center; justify-content: center; padding: 40px; svg { width: 120px; height: 80px; } } &__definition-body { padding: 32px 40px; .oauth2-guide__eyebrow { margin-bottom: 6px; } p { margin: 0; font-size: 15px; font-weight: 500; color: $oguide-text-gray; line-height: 1.7; & + p { margin-top: 2px; } } } // -- Section 3: Core Parties ------------------------------------------------ &__parties-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } &__party-card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 24px 32px; background: #FFFFFF; border: 1px solid $oguide-border; border-radius: 14px; } &__party-icon svg { display: block; width: 56px; height: 44px; } &__party-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: $oguide-text-dark; } &__party-body p { margin: 0; font-size: 14px; font-weight: 500; color: $oguide-text-gray; line-height: 1.6; & + p { margin-top: 2px; } } // -- Section 4: Grant Type -------------------------------------------------- &__grant-sub { margin: 0 0 20px; font-size: 14px; font-weight: 500; color: $oguide-text-gray; strong { color: $oguide-primary; font-weight: 700; } } &__grant-card { position: relative; padding: 24px 32px; border-radius: 14px; background: linear-gradient(90deg, $oguide-primary 0%, #1f6fd0 100%); color: #FFFFFF; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "badge endpoint" "title endpoint" "desc endpoint"; column-gap: 32px; row-gap: 8px; overflow: hidden; &::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: $oguide-accent-cyan; } } &__grant-badge { grid-area: badge; align-self: start; justify-self: start; padding: 5px 14px; border-radius: 13px; background: #FFFFFF; color: $oguide-primary; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; } &__grant-title { grid-area: title; margin: 0; font-size: 22px; font-weight: 800; color: #FFFFFF; line-height: 1.3; } &__grant-desc { grid-area: desc; margin: 0; font-size: 14px; font-weight: 500; color: $oguide-secondary; line-height: 1.6; } &__grant-endpoint { grid-area: endpoint; align-self: center; padding: 14px 18px; background: $oguide-text-dark; border-radius: 10px; min-width: 320px; display: flex; flex-direction: column; gap: 6px; } &__endpoint-row { display: flex; align-items: center; gap: 12px; } &__method { display: inline-block; padding: 3px 12px; border-radius: 4px; background: $oguide-primary; color: #FFFFFF; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; } &__path { font-family: 'Fira Code', monospace; font-size: 13px; color: #FFFFFF; } &__endpoint-params { font-family: 'Fira Code', monospace; font-size: 11px; color: $oguide-text-mute; } // -- Section 5: Sequence Diagram -------------------------------------------- &__sequence-diagram { padding: 16px; background: #FFFFFF; border: 1px solid $oguide-border; border-radius: 14px; svg { display: block; width: 100%; height: auto; } } // -- Section 6: Bearer ------------------------------------------------------ &__bearer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } &__code-block { position: relative; margin: 0; padding: 28px 24px 28px 32px; border-radius: 14px; background: $oguide-text-dark; color: #FFFFFF; font-family: 'Fira Code', monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; &::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: $oguide-primary; border-radius: 14px 0 0 14px; } } &__code-comment { display: block; color: $oguide-text-mute; font-size: 13px; margin-bottom: 6px; } &__code-line { display: block; color: #FFFFFF; &--highlight { color: $oguide-accent-cyan; } } &__lifecycle { padding: 24px 28px; background: #FFFFFF; border: 1px solid $oguide-border; border-radius: 14px; } &__lifecycle-title { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: $oguide-text-dark; } &__lifecycle-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } &__lifecycle-step { display: flex; align-items: center; gap: 8px; position: relative; &:not(:last-child)::after { content: ""; display: inline-block; width: 28px; height: 0; border-top: 1.5px dashed $oguide-text-mute; margin-left: 6px; } } &__lifecycle-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: $oguide-primary; color: #FFFFFF; font-size: 13px; font-weight: 700; } &__lifecycle-step--muted &__lifecycle-num { background: $oguide-text-mute; } // ↑ doesn't work in nesting; explicit modifier below: &__lifecycle-step--muted .oauth2-guide__lifecycle-num { background: $oguide-text-mute; } &__lifecycle-step--muted .oauth2-guide__lifecycle-label { color: $oguide-text-gray; } &__lifecycle-label { font-size: 13px; font-weight: 600; color: $oguide-text-dark; } &__lifecycle-desc { margin: 0; font-size: 13px; color: $oguide-text-gray; line-height: 1.6; & + & { margin-top: 2px; } } // -- Section 7: Security ---------------------------------------------------- &__security-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; } &__security-card { padding: 24px 28px; background: #FFFFFF; border: 1px solid $oguide-border; border-radius: 14px; } &__security-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; svg { width: 28px; height: 28px; } &--blue { background: $oguide-bg-soft; } &--yellow { background: #FFF9E6; } &--green { background: #E8F8EE; } } &__security-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: $oguide-text-dark; } &__security-card p { margin: 0; font-size: 13px; font-weight: 500; color: $oguide-text-gray; line-height: 1.6; & + p { margin-top: 2px; } } // -- Section 8: CTA --------------------------------------------------------- &__cta { position: relative; display: block; padding: 36px 48px; border-radius: 20px; background: linear-gradient(90deg, $oguide-primary 0%, #1f6fd0 100%); color: #FFFFFF; text-decoration: none; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; &:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 73, 180, 0.25); } } &__cta-body { position: relative; z-index: 1; } &__cta-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: $oguide-secondary; letter-spacing: 1.2px; margin-bottom: 12px; } &__cta-title { margin: 0 0 10px; font-size: 26px; font-weight: 800; color: #FFFFFF; line-height: 1.3; } &__cta-desc { margin: 0 0 18px; font-size: 14px; font-weight: 500; color: $oguide-secondary; } &__cta-button { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 19px; background: #FFFFFF; color: $oguide-primary; font-size: 14px; font-weight: 700; } &__cta-deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); &--lg { width: 120px; height: 120px; right: 80px; bottom: 30px; } &--sm { width: 80px; height: 80px; right: 20px; bottom: -10px; background: rgba(255, 255, 255, 0.10); } } } @media (max-width: 1024px) { .oauth2-guide { &__hero { grid-template-columns: 1fr; padding: 40px; } &__hero-illust { max-width: 280px; } &__definition { grid-template-columns: 1fr; } &__definition-icon { padding: 24px; } &__bearer-grid, &__parties-grid { grid-template-columns: 1fr; } &__security-grid { grid-template-columns: 1fr 1fr; } &__grant-card { grid-template-areas: "badge" "title" "desc" "endpoint"; grid-template-columns: 1fr; } &__grant-endpoint { min-width: 0; } } } @media (max-width: 640px) { .oauth2-guide { padding: 16px; gap: 16px; &__hero { padding: 28px 24px; } &__hero-title { font-size: 32px; } &__hero-lead { font-size: 15px; } &__h2 { font-size: 22px; } &__security-grid { grid-template-columns: 1fr; } &__cta { padding: 28px 24px; } &__cta-title { font-size: 22px; } } } // ============================================================================= // OAuth2 2-Legged 구현 가이드 (Figma 367:1564 - OAuth2 2-Legged 가이드 V3) // ============================================================================= $o2leg-primary: #0049b4; $o2leg-secondary: #c3dfea; $o2leg-bg-soft: #EDF9FE; $o2leg-bg-light: #F8FAFC; $o2leg-text-dark: #1A1A2E; $o2leg-text-gray: #64748B; $o2leg-text-mute: #94A3B8; $o2leg-border: #E2E8F0; $o2leg-cyan: #00D4FF; $o2leg-yellow: #FFD93D; $o2leg-green: #6BCF7F; $o2leg-purple: #A78BFA; $o2leg-red: #FF6B6B; $o2leg-warn-bg: #FFF9E6; $o2leg-warn-fg: #a07a00; $o2leg-err-bg: #FFE9E9; $o2leg-err-fg: #a23b3b; .oauth2-2legged { max-width: 1200px; margin: 0 auto; padding: 20px; background-color: #FFFFFF; color: $o2leg-text-dark; font-family: '원신한', 'OneShinhan', 'Spoqa Han Sans Neo', sans-serif; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; // -- common eyebrow / heading ----------------------------------------------- &__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: $o2leg-primary; letter-spacing: 1.2px; margin-bottom: 8px; } &__h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.3; color: $o2leg-text-dark; } &__desc { margin: 0 0 16px; font-size: 14px; font-weight: 500; color: $o2leg-text-gray; } // -- Section 1: Hero -------------------------------------------------------- &__hero { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 48px 80px; border-radius: 20px; border: 1px solid $o2leg-border; background: linear-gradient(135deg, $o2leg-bg-soft 0%, #FFFFFF 100%); } &__hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; border-radius: 14px; background: #FFFFFF; border: 1px solid $o2leg-secondary; color: $o2leg-primary; font-size: 13px; font-weight: 600; margin-bottom: 18px; } &__hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: $o2leg-primary; } &__hero-title { margin: 0 0 16px; font-size: 36px; font-weight: 800; color: $o2leg-text-dark; letter-spacing: -0.5px; line-height: 1.2; white-space: nowrap; } &__hero-lead { margin: 0; font-size: 16px; font-weight: 500; color: $o2leg-text-gray; line-height: 1.6; & + & { margin-top: 2px; } } &__hero-chips { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; } &__chip { display: inline-flex; align-items: center; padding: 6px 18px; border-radius: 15px; background: #FFFFFF; border: 1px solid $o2leg-border; font-size: 13px; font-weight: 600; color: $o2leg-text-dark; &--primary { background: $o2leg-primary; border-color: $o2leg-primary; color: #FFFFFF; } } &__hero-illust { align-self: center; background: #FFFFFF; border: 1px solid $o2leg-secondary; border-radius: 20px; overflow: hidden; svg { display: block; width: 100%; height: auto; } } // -- Section 2: 사전 준비 ---------------------------------------------------- &__prereq-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; } &__prereq-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 24px; background: #FFFFFF; border: 1px solid $o2leg-border; border-radius: 14px; } &__prereq-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: $o2leg-primary; color: #FFFFFF; font-size: 16px; font-weight: 800; } &__prereq-title { margin: 4px 0 8px; font-size: 15px; font-weight: 700; color: $o2leg-text-dark; } &__prereq-body p { margin: 0; font-size: 13px; font-weight: 500; color: $o2leg-text-gray; line-height: 1.6; & + p { margin-top: 2px; } } // -- Section 3: Sequence Diagram -------------------------------------------- &__sequence-diagram { padding: 16px; background: #FFFFFF; border: 1px solid $o2leg-border; border-radius: 14px; svg { display: block; width: 100%; height: auto; } } // -- Step sections (4-6) shared -------------------------------------------- &__step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } &__endpoint-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 24px; margin-bottom: 20px; background: #FFFFFF; border: 1px solid $o2leg-border; border-radius: 12px; } &__method { display: inline-block; padding: 5px 14px; border-radius: 6px; background: $o2leg-primary; color: #FFFFFF; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; } &__endpoint-path { font-family: 'Fira Code', monospace; font-size: 16px; color: $o2leg-text-dark; } &__endpoint-content-type { display: inline-block; padding: 5px 14px; border-radius: 14px; background: $o2leg-bg-light; border: 1px solid $o2leg-border; color: $o2leg-text-gray; font-size: 11px; font-weight: 700; } // -- panels (tables) -------------------------------------------------------- &__panel { padding: 24px 28px; background: #FFFFFF; border: 1px solid $o2leg-border; border-radius: 12px; } &__panel-title { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: $o2leg-text-dark; } &__panel-subtitle { margin: 20px 0 10px; font-size: 13px; font-weight: 700; color: $o2leg-text-dark; } &__table { width: 100%; border-collapse: collapse; font-size: 13px; thead { background: $o2leg-bg-light; } th { text-align: left; padding: 10px 4px; font-size: 12px; font-weight: 700; color: $o2leg-text-gray; letter-spacing: 0.4px; } td { padding: 12px 4px; border-bottom: 1px solid $o2leg-border; color: $o2leg-text-gray; vertical-align: middle; } tbody tr:last-child td { border-bottom: none; } code { font-family: 'Fira Code', monospace; font-size: 13px; font-weight: 700; color: $o2leg-text-dark; } &--errors { td:first-child { width: 64px; } td:nth-child(2) { width: 180px; } td:nth-child(3) { width: 280px; } td { color: $o2leg-text-gray; } } } &__field-name { color: $o2leg-primary !important; } &__req-badge { display: inline-block; min-width: 32px; padding: 2px 10px; border-radius: 9px; text-align: center; font-size: 10px; font-weight: 700; color: #FFFFFF; &--required { background: $o2leg-primary; } &--optional { background: $o2leg-text-mute; } } &__warning { margin: 16px 0 0; padding: 6px 14px; border-radius: 6px; background: $o2leg-warn-bg; color: $o2leg-warn-fg; font-size: 12px; font-weight: 600; } // -- code panels ------------------------------------------------------------ &__code-panel { position: relative; padding: 24px 28px; border-radius: 12px; background: $o2leg-text-dark; overflow: hidden; &::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: $o2leg-primary; } &--error::before { background: $o2leg-red; } } &__code-tag { display: inline-block; padding: 4px 14px; border-radius: 11px; background: $o2leg-primary; color: #FFFFFF; font-size: 11px; font-weight: 700; margin-bottom: 16px; &--ok { background: $o2leg-primary; } &--error { background: $o2leg-red; } } &__code-block { margin: 0; color: #FFFFFF; font-family: 'Fira Code', monospace; font-size: 13px; line-height: 1.7; white-space: pre; overflow-x: auto; } // syntax color spans (inside
)
  .o2leg-c  { color: $o2leg-cyan; }
  .o2leg-y  { color: $o2leg-yellow; }
  .o2leg-g  { color: $o2leg-green; }
  .o2leg-p  { color: $o2leg-purple; }
  .o2leg-cm { color: $o2leg-text-mute; }

  // -- step 3 header box + tips ----------------------------------------------
  &__header-box {
    padding: 14px 16px;
    border-radius: 8px;
    background: $o2leg-bg-light;
    margin-bottom: 6px;
  }

  &__header-key {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 700;
    color: $o2leg-primary;
    margin-bottom: 4px;
  }

  &__header-value {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: $o2leg-text-dark;
  }

  &__tips {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      position: relative;
      padding-left: 18px;
      font-size: 13px;
      font-weight: 500;
      color: $o2leg-text-gray;
      line-height: 1.6;

      &::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 9px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: $o2leg-primary;
      }

      & + li { margin-top: 4px; }
    }
  }

  // -- Section 7: Errors table -----------------------------------------------
  &__status-badge {
    display: inline-block;
    min-width: 40px;
    padding: 2px 12px;
    border-radius: 11px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;

    &--400 { background: $o2leg-err-bg; color: $o2leg-red; }
    &--403 { background: $o2leg-warn-bg; color: $o2leg-warn-fg; }
  }

  // -- Section 8 error note ---------------------------------------------------
  &__error-note {
    margin: 14px 0 0;
    padding: 6px 14px;
    border-radius: 6px;
    background: $o2leg-err-bg;
    color: $o2leg-err-fg;
    font-size: 12px;
    font-weight: 600;
  }

  // -- Section 9: CTA ---------------------------------------------------------
  &__cta {
    position: relative;
    display: block;
    padding: 36px 48px;
    border-radius: 20px;
    background: linear-gradient(90deg, $o2leg-primary 0%, #1f6fd0 100%);
    color: #FFFFFF;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(0, 73, 180, 0.25);
    }
  }

  &__cta-body { position: relative; z-index: 1; }

  &__cta-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: $o2leg-secondary;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
  }

  &__cta-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
  }

  &__cta-desc {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: $o2leg-secondary;
  }

  &__cta-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 19px;
    background: #FFFFFF;
    color: $o2leg-primary;
    font-size: 14px;
    font-weight: 700;
  }

  &__cta-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);

    &--lg {
      width: 120px;
      height: 120px;
      right: 80px;
      bottom: 30px;
    }

    &--sm {
      width: 80px;
      height: 80px;
      right: 20px;
      bottom: -10px;
      background: rgba(255, 255, 255, 0.10);
    }
  }
}

@media (max-width: 1024px) {
  .oauth2-2legged {
    &__hero {
      grid-template-columns: 1fr;
      padding: 32px;
    }
    &__hero-illust { max-width: 280px; }
    &__prereq-grid { grid-template-columns: 1fr; }
    &__step-grid { grid-template-columns: 1fr; }
    &__endpoint-box {
      grid-template-columns: 1fr;
      gap: 8px;

      .oauth2-2legged__method,
      .oauth2-2legged__endpoint-content-type { justify-self: start; }
    }
    &__table--errors {
      td:first-child,
      td:nth-child(2),
      td:nth-child(3) { width: auto; }
    }
  }
}

@media (max-width: 640px) {
  .oauth2-2legged {
    padding: 16px;
    gap: 16px;

    &__hero { padding: 28px 24px; }
    &__hero-title { font-size: 28px; }
    &__h2 { font-size: 22px; }
    &__cta { padding: 28px 24px; }
    &__cta-title { font-size: 22px; }
    &__panel { padding: 18px 20px; }
    &__code-panel { padding: 18px 20px; }
  }
}