-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
113 lines (103 loc) · 2.16 KB
/
Copy pathstyles.css
File metadata and controls
113 lines (103 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/* styles.css */
body {
font-family: 'Manrope', sans-serif;
}
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.card {
@apply bg-white dark:bg-slate-800 p-5 rounded-xl shadow-sm border border-slate-200 dark:border-slate-700 flex flex-col items-start gap-2 transition-colors;
}
.label {
@apply text-sm text-slate-500 dark:text-slate-400;
}
.value {
@apply text-xl font-extrabold text-slate-800 dark:text-slate-100;
}
.switch {
position: relative;
display: inline-block;
width: 42px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
background-color: #ccc;
border-radius: 34px;
top: 0;
left: 0;
right: 0;
bottom: 0;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
border-radius: 50%;
transition: .4s;
}
input:checked + .slider {
background-color: #22c55e;
}
input:checked + .slider:before {
transform: translateX(18px);
}
/* Estilos del Formulario */
#registration-form input {
border: 2px solid #e2e8f0;
transition: all 0.3s ease;
font-size: 14px;
}
#registration-form input:focus {
border-color: #22c55e;
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
#registration-form input.valid {
border-color: #22c55e;
background-color: rgba(34, 197, 94, 0.02);
}
#registration-form input.invalid {
border-color: #ef4444;
background-color: rgba(239, 68, 68, 0.02);
}
.dark #registration-form input {
border-color: #475569;
}
.dark #registration-form input.valid {
border-color: #4ade80;
background-color: rgba(74, 222, 128, 0.05);
}
.dark #registration-form input.invalid {
border-color: #f87171;
background-color: rgba(248, 113, 113, 0.05);
}
#registration-form p[id^='error-'] {
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Animar mensajes de error */
#registration-form p[id^='error-']:not(.hidden) {
animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}