_login_and_register.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //
  2. // Pages: Login & Register
  3. //
  4. .login-logo,
  5. .register-logo {
  6. font-size: 2.1rem;
  7. font-weight: 300;
  8. margin-bottom: .9rem;
  9. text-align: center;
  10. a {
  11. color: $gray-700;
  12. }
  13. }
  14. .login-page,
  15. .register-page {
  16. align-items: center;
  17. background-color: $gray-200;
  18. display: flex;
  19. flex-direction: column;
  20. height: 100vh;
  21. justify-content: center;
  22. }
  23. .login-box,
  24. .register-box {
  25. width: 360px;
  26. @media (max-width: map-get($grid-breakpoints, sm)) {
  27. margin-top: .5rem;
  28. width: 90%;
  29. }
  30. .card {
  31. margin-bottom: 0;
  32. }
  33. }
  34. .login-card-body,
  35. .register-card-body {
  36. background-color: $white;
  37. border-top: 0;
  38. color: #666;
  39. padding: 20px;
  40. .input-group {
  41. .form-control {
  42. border-right: 0;
  43. &:focus {
  44. box-shadow: none;
  45. ~ .input-group-prepend .input-group-text,
  46. ~ .input-group-append .input-group-text {
  47. border-color: $input-focus-border-color;
  48. }
  49. }
  50. &.is-valid {
  51. &:focus {
  52. box-shadow: none;
  53. }
  54. ~ .input-group-prepend .input-group-text,
  55. ~ .input-group-append .input-group-text {
  56. border-color: $success;
  57. }
  58. }
  59. &.is-invalid {
  60. &:focus {
  61. box-shadow: none;
  62. }
  63. ~ .input-group-append .input-group-text {
  64. border-color: $danger;
  65. }
  66. }
  67. }
  68. .input-group-text {
  69. background-color: transparent;
  70. border-bottom-right-radius: $border-radius;
  71. border-left: 0;
  72. border-top-right-radius: $border-radius;
  73. color: #777;
  74. transition: $input-transition;
  75. }
  76. }
  77. }
  78. .login-box-msg,
  79. .register-box-msg {
  80. margin: 0;
  81. padding: 0 20px 20px;
  82. text-align: center;
  83. }
  84. .social-auth-links {
  85. margin: 10px 0;
  86. }
  87. @include dark-mode () {
  88. .login-card-body,
  89. .register-card-body {
  90. background-color: $dark;
  91. border-color: $gray-600;
  92. color: $white;
  93. }
  94. .login-logo,
  95. .register-logo {
  96. a {
  97. color: $white;
  98. }
  99. }
  100. }