auth.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. $header-color: #d4d5d7;
  2. $main-title-color: #3b3b3b;
  3. $main-text-color: #101010;
  4. $main-color: #789084;
  5. $hover-color: #b1e8ca;
  6. $opacity-color: rgba(17,17,17,0.8);
  7. .auth-wrapper {
  8. background-color: $opacity-color;
  9. min-height: 100vh;
  10. @media (max-width: 1024px) {
  11. min-height: 100vh;
  12. }
  13. }
  14. .auth {
  15. width: 100%;
  16. height: 100%;
  17. &__content {
  18. width: 28rem;
  19. position: absolute;
  20. top: 50%;
  21. left: 50%;
  22. transform: translate(-50%, -50%);
  23. background-color: rgba(17, 17, 17, 0.8);
  24. padding: 1.5rem;
  25. border: 1px solid #eee;
  26. margin-top: 40px;
  27. @media (max-width: 1024px) {
  28. top: 35%;
  29. }
  30. }
  31. &__text {
  32. font-size: 1.2rem;
  33. color: $hover-color;
  34. }
  35. &__toggle-span {
  36. font-weight: bold;
  37. color: rgb(102, 104, 223);
  38. margin-left: 20px;
  39. cursor: pointer;
  40. }
  41. &__auth-box {
  42. margin-bottom: 2rem;
  43. }
  44. &__control-box {
  45. margin-top: 2rem;
  46. }
  47. &__error-auth-text {
  48. margin-top: 1rem;
  49. text-align: center;
  50. width: 100%;
  51. color: #d7394c;
  52. font-size: 2rem;
  53. }
  54. &__success-auth-text {
  55. margin-top: 1rem;
  56. text-align: center;
  57. width: 100%;
  58. color: $hover-color;
  59. font-size: 2rem;
  60. }
  61. &__submit-btn {
  62. width: 100%;
  63. border: 1px solid #eee;
  64. border-radius: 3px;
  65. color: $opacity-color;
  66. background-color: $hover-color;
  67. border: none;
  68. cursor: pointer;
  69. font-weight: 600;
  70. font-size: 1.2rem;
  71. transition: 0.2s;
  72. padding: 0.5rem 1rem;
  73. &:focus {
  74. outline: none;
  75. }
  76. &:hover {
  77. color: $opacity-color;
  78. background-color: $main-color;
  79. outline: none;
  80. transform: translateY(-1px);
  81. box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  82. &:after {
  83. transform: scaleX(1.4) scaleY(1.6);
  84. opacity: 0;
  85. }
  86. }
  87. &:disabled {
  88. color: $main-title-color;
  89. background-color: #eee;
  90. }
  91. }
  92. }
  93. // input
  94. .input-box {
  95. display: flex;
  96. flex-direction: column;
  97. color: $header-color;
  98. font-weight: 700;
  99. margin-top: 10px;
  100. &__input {
  101. font-family: inherit;
  102. font-size: 1em;
  103. padding: 0.5rem 1rem;
  104. border-radius: 2px;
  105. background-color: rgba(255, 255, 255, 0.5);
  106. border: none;
  107. border-bottom: 3px solid #eee;
  108. width: 100%;
  109. display: block;
  110. transition: all 0.3s;
  111. &:focus {
  112. outline: none;
  113. box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  114. border-bottom: 3px solid green;
  115. }
  116. &--fail {
  117. border-bottom: 3px solid #9e4560;
  118. }
  119. }
  120. }