.login-form-container {
background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
padding: 40px 20px;
border-radius: 20px;
max-width: 500px;
margin: 0 auto;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
.login-form-demo {
background: white;
border-radius: 15px;
padding: 30px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.form-wrapper {
animation: slideInUp 0.6s ease-out;
}
.form-header {
text-align: center;
margin-bottom: 30px;
}
.form-header h2 {
margin: 0 0 10px 0;
color: #333;
font-size: 2rem;
font-weight: 700;
}
.form-header p {
color: #666;
font-size: 1.1rem;
margin: 0;
}
.login-form {
display: flex;
flex-direction: column;
gap: 20px;
}
.form-group {
animation: fadeIn 0.6s ease-out;
}
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #333;
font-size: 0.95rem;
}
.input-wrapper {
position: relative;
}
.input-wrapper input {
width: 100%;
padding: 15px 50px 15px 50px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-size: 1rem;
transition: all 0.3s ease;
box-sizing: border-box;
}
.input-wrapper input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.input-wrapper input.valid {
border-color: #27ae60;
background: rgba(39, 174, 96, 0.05);
}
.input-wrapper input.invalid {
border-color: #e74c3c;
background: rgba(231, 76, 60, 0.05);
}
.input-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
font-size: 1.2rem;
color: #999;
}
.input-wrapper input:focus + .input-icon {
color: #667eea;
}
.input-wrapper input.valid + .input-icon {
color: #27ae60;
}
.input-wrapper input.invalid + .input-icon {
color: #e74c3c;
}
.toggle-password {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
font-size: 1.2rem;
color: #999;
cursor: pointer;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.3s ease;
}
.toggle-password:hover {
color: #667eea;
background: rgba(102, 126, 234, 0.1);
}
.form-options {
display: flex;
justify-content: space-between;
align-items: center;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
font-size: 0.9rem;
color: #666;
}
.checkbox-label input {
display: none;
}
.checkmark {
width: 20px;
height: 20px;
border: 2px solid #e2e8f0;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.checkbox-label input:checked + .checkmark {
background: #667eea;
border-color: #667eea;
}
.checkbox-label input:checked + .checkmark::after {
content: '✓';
color: white;
font-size: 12px;
}
.forgot-password {
color: #667eea;
text-decoration: none;
font-size: 0.9rem;
font-weight: 600;
transition: all 0.3s ease;
}
.forgot-password:hover {
color: #5a6fd8;
text-decoration: underline;
}
.btn {
padding: 16px;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-primary:hover:not(:disabled) {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}
.btn-primary:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.btn-text {
transition: opacity 0.3s ease;
}
.btn.loading .btn-text {
opacity: 0;
}
.btn-spinner {
position: absolute;
top: 50%;
left: 50%;
width: 24px;
height: 24px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid white;
border-radius: 50%;
transform: translate(-50%, -50%);
opacity: 0;
transition: opacity 0.3s ease;
animation: spin 1s linear infinite;
}
.btn.loading .btn-spinner {
opacity: 1;
}
.divider {
display: flex;
align-items: center;
gap: 15px;
margin: 10px 0;
}
.divider span {
color: #999;
font-size: 0.9rem;
white-space: nowrap;
}
.divider::before,
.divider::after {
content: '';
flex: 1;
height: 1px;
background: #e2e8f0;
}
.social-login {
display: flex;
gap: 15px;
margin-bottom: 20px;
}
.social-btn {
flex: 1;
padding: 12px;
border: 2px solid #e2e8f0;
border-radius: 12px;
background: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s ease;
font-weight: 600;
}
.social-btn:hover {
transform: translateY(-2px);
border-color: #667eea;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.social-icon {
font-size: 1.2rem;
}
.social-text {
color: #333;
font-size: 0.9rem;
}
.social-btn.google:hover {
border-color: #db4437;
}
.social-btn.facebook:hover {
border-color: #3b5998;
}
.social-btn.apple:hover {
border-color: #000000;
}
.signup-link {
text-align: center;
color: #666;
font-size: 0.95rem;
}
.signup-link a {
color: #667eea;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}
.signup-link a:hover {
color: #5a6fd8;
text-decoration: underline;
}
/* Animations */
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
20%, 60% { transform: translateX(-5px); }
40%, 80% { transform: translateX(5px); }
}
.shake {
animation: shake 0.5s ease-in-out;
}
/* Responsive */
@media (max-width: 768px) {
.login-form-container {
padding: 30px 15px;
}
.login-form-demo {
padding: 25px;
}
.form-header h2 {
font-size: 1.7rem;
}
.input-wrapper input {
padding: 12px 45px 12px 45px;
}
.input-icon,
.toggle-password {
font-size: 1rem;
}
.social-login {
flex-direction: column;
gap: 10px;
}
.social-btn {
width: 100%;
}
}
@media (max-width: 480px) {
.form-options {
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.forgot-password {
align-self: flex-end;
}
}