auth.scss 2.1 KB

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