Files
ConnectHub/css/login.css
2024-09-25 20:49:15 +02:00

169 lines
3.0 KiB
CSS

:root {
--color-white: #fff;
--color-black: #000;
--color-bg: #f1f1f1;
}
.dark-mode {
--color-white: #000;
--color-black: #fff;
--color-bg: #1d1b31;
}
body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
height: 100%;
background-color: var(--color-bg);
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.login-box {
border: 2px solid #5865F2;
border-radius: 8px;
padding: 40px;
box-shadow: 4px 4px #5865F2;
background-color: var(--color-bg);
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
max-width: 400px;
width: 100%;
}
.logo {
width: 150px;
height: auto;
margin-bottom: 20px;
}
.title {
color: var(--color-black);
font-size: 24px;
font-weight: 900;
margin-bottom: 8px;
}
.subtitle {
color: var(--color-black);
font-size: 16px;
font-weight: 600;
margin-bottom: 24px;
}
.discord-btn {
background-color: #5865F2;
border: 2px solid #5865F2;
color: #ffffff;
padding: 12px 20px;
font-size: 16px;
font-weight: 600;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: relative;
width: 100%;
max-width: 300px;
white-space: nowrap;
}
.discord-btn:hover {
background-color: #4752C4;
border-color: #4752C4;
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
.discord-btn:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.discord-btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
background: rgba(255, 255, 255, 0.5);
opacity: 0;
border-radius: 100%;
transform: scale(1, 1) translate(-50%);
transform-origin: 50% 50%;
}
@keyframes ripple {
0% {
transform: scale(0, 0);
opacity: 1;
}
20% {
transform: scale(25, 25);
opacity: 1;
}
100% {
opacity: 0;
transform: scale(40, 40);
}
}
.discord-btn:focus:not(:active)::after {
animation: ripple 1s ease-out;
}
.discord-icon {
width: 20px;
height: 20px;
margin-right: 8px;
fill: currentColor;
flex-shrink: 0;
}
@media (max-width: 400px) {
.discord-btn {
font-size: 14px;
padding: 10px 16px;
}
.discord-icon {
width: 18px;
height: 18px;
margin-right: 6px;
}
}
.theme-toggle {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #333;
color: white;
font-size: 24px;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
.theme-toggle.light-mode {
background-color: #f1f1f1;
color: #333;
}
.theme-toggle:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}