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.
 
 
 
 
 

160 regels
4.1 KiB

  1. @use '../atoms/variables' as *;
  2. @use '../atoms/mixins' as *;
  3. // ─── Login Page ───────────────────────────────────────────────────────────────
  4. .login-body {
  5. min-height: 100vh;
  6. background: var(--color-bg);
  7. display: flex;
  8. align-items: center;
  9. justify-content: center;
  10. }
  11. // ─── Card ─────────────────────────────────────────────────────────────────────
  12. .login-card {
  13. @include card($color-card-white, $radius-xl);
  14. padding: $space-10 $space-12;
  15. width: 100%;
  16. max-width: 540px;
  17. @include tablet {
  18. padding: $space-8 $space-5;
  19. margin: $space-4;
  20. max-width: calc(100% - #{$space-8});
  21. }
  22. }
  23. .login-card__title {
  24. font-size: $font-size-xl;
  25. font-weight: $font-weight-bold;
  26. color: $color-text-dark;
  27. text-align: center;
  28. margin-bottom: $space-8;
  29. }
  30. .login-card__error {
  31. background: rgba($color-error, 0.08);
  32. border: 1px solid rgba($color-error, 0.25);
  33. border-radius: $radius-sm;
  34. color: $color-error;
  35. font-size: $font-size-sm;
  36. padding: $space-3 $space-4;
  37. margin-bottom: $space-6;
  38. }
  39. // ─── Form Grid ────────────────────────────────────────────────────────────────
  40. .login-form__grid {
  41. display: grid;
  42. grid-template-columns: 90px 1fr;
  43. gap: $space-5 $space-4;
  44. align-items: center;
  45. margin-bottom: $space-5;
  46. @include mobile {
  47. grid-template-columns: 1fr;
  48. gap: $space-3;
  49. }
  50. }
  51. .login-form__label {
  52. @include form-label;
  53. font-size: $font-size-base;
  54. @include mobile {
  55. text-align: left;
  56. padding-right: 0;
  57. }
  58. }
  59. .login-form__field {
  60. display: flex;
  61. align-items: center;
  62. gap: $space-3;
  63. }
  64. .login-form__field--password {
  65. flex-wrap: wrap;
  66. gap: $space-2 $space-3;
  67. }
  68. .login-form__forgot {
  69. font-size: $font-size-sm;
  70. color: $color-text-muted;
  71. text-decoration: none;
  72. white-space: nowrap;
  73. &:hover {
  74. color: var(--color-primary);
  75. text-decoration: underline;
  76. }
  77. }
  78. // ─── Footer-Link ──────────────────────────────────────────────────────────────
  79. .login-form__footer {
  80. text-align: center;
  81. margin-top: $space-6;
  82. }
  83. .login-form__link {
  84. font-size: $font-size-sm;
  85. color: $color-text-muted;
  86. text-decoration: none;
  87. &:hover {
  88. color: var(--color-primary);
  89. text-decoration: underline;
  90. }
  91. }
  92. // ─── Info-Text (nach E-Mail-Versand) ──────────────────────────────────────────
  93. .login-card__info {
  94. font-size: $font-size-base;
  95. color: $color-text-base;
  96. text-align: center;
  97. margin-bottom: $space-6;
  98. line-height: 1.6;
  99. }
  100. .login-card__sub {
  101. font-size: $font-size-sm;
  102. color: $color-text-muted;
  103. text-align: center;
  104. margin-bottom: $space-6;
  105. }
  106. // ─── "Angemeldet bleiben" ─────────────────────────────────────────────────────
  107. .login-form__remember {
  108. display: flex;
  109. justify-content: center;
  110. margin-bottom: $space-6;
  111. }
  112. .login-form__remember-label {
  113. display: flex;
  114. align-items: center;
  115. gap: $space-2;
  116. cursor: pointer;
  117. font-size: $font-size-base;
  118. color: $color-text-base;
  119. input[type='checkbox'] {
  120. width: 16px;
  121. height: 16px;
  122. cursor: pointer;
  123. accent-color: var(--color-primary);
  124. }
  125. }
  126. // ─── Submit ───────────────────────────────────────────────────────────────────
  127. .login-form__actions {
  128. display: flex;
  129. justify-content: center;
  130. }
  131. .login-form__submit {
  132. padding: $space-3 $space-10;
  133. font-size: $font-size-md;
  134. @include tablet { width: 100%; }
  135. }