You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

201 regels
5.0 KiB

  1. @use '../atoms/variables' as *;
  2. @use '../atoms/mixins' as *;
  3. .register-body {
  4. min-height: 100vh;
  5. background: var(--color-bg);
  6. display: flex;
  7. align-items: flex-start;
  8. justify-content: center;
  9. padding: $space-10 $space-4;
  10. }
  11. // ─── Wrapper ──────────────────────────────────────────────────────────────────
  12. .register-page {
  13. width: 100%;
  14. max-width: 580px;
  15. }
  16. .register-card {
  17. @include card($color-card-white, $radius-xl);
  18. padding: $space-10 $space-12;
  19. @include tablet { padding: $space-8 $space-5; }
  20. }
  21. .register-card__brand {
  22. text-align: center;
  23. margin-bottom: $space-6;
  24. a {
  25. font-size: $font-size-base;
  26. font-weight: $font-weight-bold;
  27. color: var(--color-primary);
  28. text-decoration: none;
  29. letter-spacing: 0.02em;
  30. }
  31. }
  32. .register-card__title {
  33. font-size: $font-size-xl;
  34. font-weight: $font-weight-bold;
  35. color: $color-text-dark;
  36. text-align: center;
  37. margin-bottom: $space-2;
  38. }
  39. .register-card__sub {
  40. font-size: $font-size-sm;
  41. color: $color-text-muted;
  42. text-align: center;
  43. margin-bottom: $space-8;
  44. }
  45. // ─── Errors ───────────────────────────────────────────────────────────────────
  46. .register-errors {
  47. &:not(:empty) {
  48. background: rgba($color-error, 0.07);
  49. border: 1px solid rgba($color-error, 0.25);
  50. border-radius: $radius-sm;
  51. color: $color-error;
  52. font-size: $font-size-sm;
  53. padding: $space-3 $space-4;
  54. margin-bottom: $space-6;
  55. p { margin: 0; line-height: 1.6; }
  56. p + p { margin-top: $space-1; }
  57. }
  58. }
  59. // ─── Fieldsets ────────────────────────────────────────────────────────────────
  60. .register-fieldset {
  61. border: none;
  62. padding: 0;
  63. margin: 0 0 $space-8;
  64. }
  65. .register-fieldset__legend {
  66. font-size: $font-size-sm;
  67. font-weight: $font-weight-bold;
  68. color: $color-text-muted;
  69. text-transform: uppercase;
  70. letter-spacing: 0.06em;
  71. margin-bottom: $space-5;
  72. display: block;
  73. }
  74. // ─── Einzelnes Feld ───────────────────────────────────────────────────────────
  75. .register-field {
  76. margin-bottom: $space-5;
  77. &:last-child { margin-bottom: 0; }
  78. }
  79. .register-field__label {
  80. display: block;
  81. font-size: $font-size-sm;
  82. color: $color-text-muted;
  83. margin-bottom: $space-2;
  84. }
  85. .register-field__hint {
  86. margin-top: $space-2;
  87. font-size: $font-size-sm;
  88. color: $color-text-muted;
  89. }
  90. .register-field__slug {
  91. color: $color-primary;
  92. font-family: monospace;
  93. font-size: $font-size-sm;
  94. }
  95. // ─── Zweispaltig ──────────────────────────────────────────────────────────────
  96. .register-field-row {
  97. display: grid;
  98. grid-template-columns: 1fr 1fr;
  99. gap: $space-4;
  100. margin-bottom: $space-5;
  101. @include mobile { grid-template-columns: 1fr; }
  102. }
  103. // ─── Actions ──────────────────────────────────────────────────────────────────
  104. .register-actions {
  105. margin-top: $space-8;
  106. }
  107. .register-actions__submit {
  108. width: 100%;
  109. padding: $space-4;
  110. font-size: $font-size-md;
  111. &:disabled {
  112. opacity: 0.6;
  113. cursor: not-allowed;
  114. }
  115. }
  116. .register-actions__login {
  117. text-align: center;
  118. margin-top: $space-4;
  119. font-size: $font-size-sm;
  120. color: $color-text-muted;
  121. a {
  122. color: var(--color-primary);
  123. text-decoration: none;
  124. &:hover { text-decoration: underline; }
  125. }
  126. }
  127. // ─── Erfolgs-State ────────────────────────────────────────────────────────────
  128. .register-success {
  129. text-align: center;
  130. padding: $space-6 0;
  131. }
  132. .register-success__icon {
  133. width: 56px;
  134. height: 56px;
  135. border-radius: 50%;
  136. background: $color-success-bg;
  137. color: $color-success;
  138. font-size: 1.6rem;
  139. font-weight: $font-weight-bold;
  140. display: flex;
  141. align-items: center;
  142. justify-content: center;
  143. margin: 0 auto $space-6;
  144. &--error {
  145. background: rgba($color-error, 0.08);
  146. color: $color-error;
  147. }
  148. }
  149. .register-success__title {
  150. font-size: $font-size-xl;
  151. font-weight: $font-weight-bold;
  152. color: $color-text-dark;
  153. margin-bottom: $space-4;
  154. }
  155. .register-success__text {
  156. font-size: $font-size-md;
  157. color: $color-text-base;
  158. line-height: $line-height-base;
  159. margin-bottom: $space-3;
  160. }
  161. .register-success__btn {
  162. margin-top: $space-6;
  163. }
  164. .register-success__hint {
  165. font-size: $font-size-sm;
  166. color: $color-text-muted;
  167. line-height: $line-height-base;
  168. }