Changeset 79a0317 for imaps-frontend/src/pages/Signup/Signup.module.css
- Timestamp:
- 01/21/25 03:08:24 (2 weeks ago)
- Branches:
- main
- Parents:
- 0c6b92a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/src/pages/Signup/Signup.module.css
r0c6b92a r79a0317 1 * {2 margin: 0;3 padding: 0;4 -webkit-box-sizing: border-box;5 box-sizing: border-box;6 font-family: sans-serif;7 }8 9 .illustration img {10 max-height: 500px;11 width: auto;12 }13 14 1 .wrapper { 15 display: -webkit-box;16 display: -ms-flexbox;17 2 display: flex; 18 height: 100vh; 19 -webkit-box-align: center; 20 -ms-flex-align: center; 21 align-items: center; 22 } 23 24 .wrapper p { 25 font-size: 0.85rem; 26 margin-top: 1rem; 3 align-items: center; /* Vertically center content */ 4 justify-content: center; /* Horizontally center content */ 5 height: 100vh; /* Full viewport height */ 6 background-color: #ffffff; /* Light background */ 7 padding: 1rem; 8 gap: 2rem; /* Space between form and image */ 27 9 } 28 10 29 11 .form { 30 padding: 1.5rem; 31 -ms-flex-preferred-size: 100vw; 32 flex-basis: 100vw; 12 padding: 2rem; 13 background-color: white; 14 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 15 border-radius: 10px; 16 flex-basis: 100%; 17 max-width: 400px; /* Restrict form width */ 18 text-align: center; /* Center text inside the form */ 33 19 } 34 20 35 21 .form .heading { 36 font-size: 1. 5rem;22 font-size: 1.8rem; 37 23 font-weight: bold; 38 text-align: center; 39 } 40 41 .or { 42 margin: 1rem 0; 24 color: #258de6; 25 margin-bottom: 1rem; 43 26 } 44 27 45 28 .form label { 46 29 display: block; 47 margin: 1.25rem 0 1rem 0; 30 margin: 1.25rem 0 0.5rem 0; 31 font-size: 0.9rem; 32 font-weight: bold; 33 color: #555; 48 34 } 49 35 … … 51 37 height: 40px; 52 38 width: 100%; 53 padding: 1 5px;39 padding: 10px 15px; 54 40 background-color: #f1f9ff; 55 41 border: 2px solid #bce0fd; 56 42 border-radius: 8px; 43 font-size: 1rem; 44 } 45 46 .form input:focus { 47 outline: none; 48 border-color: #258de6; 49 background-color: #e6f4ff; 57 50 } 58 51 59 52 .form button { 60 height: 4 0px;53 height: 45px; 61 54 width: 100%; 62 55 background-color: #258de6; … … 65 58 letter-spacing: 1px; 66 59 border: none; 60 margin-top: 1.5rem; 61 font-weight: bold; 62 border-radius: 8px; 63 cursor: pointer; 64 transition: all 0.2s ease; 65 } 66 67 .form button:hover { 68 filter: brightness(90%); 69 } 70 71 .form button:active { 72 transform: scale(0.96); 73 } 74 75 .form p { 76 text-align: center; 77 margin-top: 1rem; 78 font-size: 0.9rem; 79 } 80 81 .form p a { 82 color: #258de6; 83 text-decoration: none; 84 font-weight: bold; 85 } 86 87 .form p a:hover { 88 text-decoration: underline; 89 } 90 91 .illustration { 92 text-align: center; /* Center image container */ 93 } 94 95 .illustration img { 96 max-width: 100%; 97 height: auto; 98 border-radius: 10px; 67 99 display: block; 68 margin: 0 auto; 100 margin: 0 auto; /* Center the image */ 101 } 102 103 @media (min-width: 768px) { 104 .wrapper { 105 flex-direction: row; 106 gap: 4rem; /* Space between form and image */ 107 } 108 109 .form { 110 flex-basis: 50%; 111 } 112 113 .illustration { 114 flex-basis: 50%; 115 } 116 117 .illustration img { 118 max-height: 600px; 119 width: auto; 120 } 121 } 122 123 @media (max-width: 768px) { 124 .wrapper { 125 flex-direction: column; 126 text-align: center; /* Center all content in column layout */ 127 } 128 129 .illustration { 130 margin-bottom: 2rem; /* Space between image and form */ 131 } 132 } 133 134 .errorMessage, 135 .successMessage { 136 font-size: 0.9rem; 69 137 font-weight: bold; 70 margin-top: 1.5rem; 138 text-align: center; 139 margin-top: 1rem; 140 padding: 10px; 71 141 border-radius: 8px; 72 142 } 73 143 74 @media (min-width: 542px) { 75 body { 76 display: -webkit-box; 77 display: -ms-flexbox; 78 display: flex; 79 -webkit-box-pack: center; 80 -ms-flex-pack: center; 81 justify-content: center; 82 } 83 .wrapper { 84 display: -webkit-box; 85 display: -ms-flexbox; 86 display: flex; 87 height: 100vh; 88 -webkit-box-align: center; 89 -ms-flex-align: center; 90 align-items: center; 91 -ms-flex-pack: distribute; 92 justify-content: space-around; 93 padding: 1.5rem; 94 max-width: 1100px; 95 } 96 .form { 97 -ms-flex-preferred-size: auto; 98 flex-basis: auto; 99 } 100 .form input { 101 width: 250px; 102 } 103 .illustration img { 104 max-width: 80%; 105 height: auto; 106 } 144 .errorMessage { 145 color: #e74c3c; 146 background-color: #fbeaea; 147 border: 1px solid #e74c3c; 107 148 } 108 149 109 @media (max-width: 680px){110 .illustration {111 display: none;112 }150 .successMessage { 151 color: #2ecc71; 152 background-color: #ebf9f1; 153 border: 1px solid #2ecc71; 113 154 } 114 115 .signUp .illustration {116 order: 2;117 justify-self: flex-end;118 margin-left: 2rem;119 }120 121 button:hover {122 filter: brightness(95%);123 }124 125 button:active {126 transform: scale(0.98);127 }128 129 /* Error message style */130 .errorMessage {131 color: #e74c3c; /* Red color for error */132 background-color: #fbeaea;133 padding: 10px;134 border: 1px solid #e74c3c;135 border-radius: 5px;136 margin-top: 1rem;137 text-align: center;138 font-size: 0.9rem;139 font-weight: bold;140 }141 142 /* Success message style */143 .successMessage {144 color: #2ecc71; /* Green color for success */145 background-color: #ebf9f1;146 padding: 10px;147 border: 1px solid #2ecc71;148 border-radius: 5px;149 margin-top: 1rem;150 text-align: center;151 font-size: 0.9rem;152 font-weight: bold;153 }
Note:
See TracChangeset
for help on using the changeset viewer.