It doesn’t apply even if I Google it. Please help.
I’ve been doing it for four hours, but I can’t
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
width: 100%;
height: 100%;
overflow-x: hidden;
}
body {
font-family: 'Pretendard', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f3f4f6;
padding: 20px;
}
.login-container {
background: white;
padding: 40px 30px;
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
width: 100%;
max-width: 400px;
animation: fadeIn 1s ease;
margin: auto;
position: relative;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.login-container h2 {
margin-bottom: 24px;
color: #333;
text-align: center;
}
.login-tabs {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
gap: 8px;
}
.login-tabs button {
flex: 1;
padding: 10px 0;
border: 1px solid #ddd;
background-color: #f8f9fa;
color: #333;
border-radius: 8px;
cursor: pointer;
transition: 0.3s;
font-size: 14px;
}
.login-tabs button:hover {
background-color: #e2e8f0;
}
.login-tabs button.active {
background-color: #667eea;
color: white;
border-color: #667eea;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 6px;
color: #555;
}
.form-group input {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 14px;
transition: 0.3s;
}
.form-group input:focus {
border-color: #667eea;
outline: none;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.login-btn {
width: 100%;
background: #667eea;
color: white;
padding: 14px;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: 0.3s;
}
.login-btn:hover {
background: #5a67d8;
}
.links {
text-align: center;
margin-top: 16px;
font-size: 14px;
}
.links a {
color: #667eea;
text-decoration: none;
margin: 0 8px;
}
.links a:hover {
text-decoration: underline;
}
.extra-buttons {
margin-top: 30px;
padding: 0 8px;
text-align: center;
}
.sub-btn {
background: rgb(139, 139, 139);
color: #333;
padding: 12px 20px;
border: none;
border-radius: 8px;
font-size: 15px;
cursor: pointer;
transition: 0.3s;
width: 100%;
margin-bottom: 10px;
}
.sub-btn:hover {
background: #cbd5e1;
}
#popup {
display: none;
position: fixed;
background: #fff;
border: 1px solid #ccc;
padding: 12px;
z-index: 1000;
width: 400px;
height: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 8px;
font-size: 14px;
word-wrap: break-word;
}
@media (max-width: 768px) {
body {
padding: 10px;
}
.login-container {
padding: 30px 20px;
max-width: 90%;
}
.login-tabs {
flex-direction: column;
}
.login-tabs button {
margin-bottom: 8px;
}
.form-group input, .login-btn, .sub-btn {
font-size: 16px;
}
.extra-buttons .sub-btn {
width: 100%;
}
}
@media (max-width: 480px) {
.login-container {
padding: 20px 15px;
max-width: 100%;
}
.form-group input, .login-btn, .sub-btn {
font-size: 18px;
}
.login-btn {
padding: 16px;
}
.links a {
font-size: 16px;
}
}
Result: I can’t see the login form etc, but I need to activate the desktop to see the login form, please help.
.