.register-card {
    background: var(--background-card);
    padding: 32px;
    border-radius: 8px;
    width: 440px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

h2 {
    text-align: center;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.form-item {
    margin-bottom: 20px;
}

label,
.dob-fieldset legend {
    display: block;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    border: none;
}

.dob-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.star {
    color: var(--danger);
    padding-left: 4px;
}

input {
    width: 100%;
    height: 40px;
    padding: 10px;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--text-normal);
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--brand);
}

.dob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.custom-select {
    position: relative;
    flex: 1;
    user-select: none;
}

.custom-select:has(.options-wrapper.show) .select-trigger:after {
    transform: rotate(180deg);
}

.select-trigger {
    background-color: var(--input-bg);
    color: var(--text-muted);
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.select-trigger:focus {
    border-color: var(--brand);
    outline: none;
}

.select-trigger.selected {
    color: var(--text-normal);
}

.select-trigger:after {
    content: "";
    margin-left: auto;
    border: 5px solid transparent;
    border-top-color: var(--text-muted);
    transition: transform 0.2s ease;
    transform-origin: center 2.5px;
}

.options-wrapper {
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    background-color: #232428;
    border-radius: 4px;
    max-height: 215px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.options-wrapper.show {
    display: block;
}

.option {
    padding: 10px 12px;
    color: var(--text-normal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option:hover {
    background-color: #35373c;
    color: var(--white);
}

.option.selected {
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--white);
}

.option.selected:after {
    content: "✓";
    color: var(--brand);
    font-weight: bold;
}

.options-wrapper::-webkit-scrollbar {
    width: 8px;
}

.options-wrapper::-webkit-scrollbar-thumb {
    background: #111214;
    border-radius: 10px;
    border: 2px solid #232428;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 16px;
    margin-bottom: 12px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 1px solid #4e5058;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.1s;
}

.checkbox-container input:checked+.checkmark {
    background-color: var(--brand);
    border-color: var(--brand);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked+.checkmark::after {
    display: block;
}

.input-helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

input:focus+.input-helper-text {
    margin-top: 8px;
    max-height: 40px;
    opacity: 1;
}

.legal-item a {
    color: var(--text-link);
    text-decoration: none;
}

.legal-item a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    height: 44px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    margin: 8px 0 12px 0;
    transition: background-color 0.2s, opacity 0.2s;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
    background-color: #4752c4;
    cursor: pointer;
}

.login-link {
    display: block;
    color: var(--text-link);
    text-decoration: none;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}