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
/* InputOTP component — one-time password input slots */
.mui-input-otp {
display: inline-flex;
align-items: center;
gap: 0.375rem;
}
/* Individual character slot */
.mui-input-otp__slot {
width: 2.5rem;
height: 2.75rem;
text-align: center;
font-size: 1.25rem;
font-weight: 500;
font-family: var(--mui-font-mono);
color: var(--mui-text);
background: transparent;
border: 1px solid var(--mui-border);
border-radius: var(--mui-radius-md);
caret-color: var(--mui-accent);
transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mui-input-otp__slot::placeholder {
color: var(--mui-text-muted);
opacity: 0.4;
}
/* Hover */
.mui-input-otp__slot:hover:not(:disabled):not(:focus) {
border-color: var(--mui-border-hover);
}
/* Focus ring — matching Input component style */
.mui-input-otp__slot:focus-visible {
outline: none;
border-color: transparent;
box-shadow: 0 0 0 2px var(--mui-bg), 0 0 0 4px var(--mui-border-focus);
}
/* Filled slot — slightly bolder for visual feedback */
.mui-input-otp__slot:not(:placeholder-shown) {
font-weight: 600;
}
.mui-input-otp__slot:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
/* Group separator (dash between slot groups) */
.mui-input-otp__separator {
display: flex;
align-items: center;
justify-content: center;
padding: 0 0.125rem;
}
.mui-input-otp__separator-dash {
width: 0.625rem;
height: 2px;
background: var(--mui-border);
border-radius: 1px;
}
/* Hidden composite value input */
.mui-input-otp__value {
display: none;
}