/* Register page additions */
.register {
    min-width: 360px;
    margin: 50px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.register h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.steps-indicator .step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #666;
    font-weight: 600;
}

.steps-indicator .step-bar {
    flex-grow: 1;
    height: 2px;
    background: #eee;
    margin: 0 8px;
    height: 2px;
}

.steps-indicator .step.active + .step-bar {
    background: #007bff;
}

.steps-indicator .step.active {
    background: #007bff;
    color: #fff
}

.card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    display: grid;
    gap: .75rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem
}

form a.link {
    font-size: .9rem;
    text-align: center;
    text-decoration: none;
    border: 2px solid #007bff;
    border-radius: 6px;
    padding: .4rem .6rem;
    background-color: #f8f9fa;
}

form a.link:hover {
    color: #fff;
    background-color: #007bff;
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr
    }
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Input-group with prefix (used for phone +30) */
.input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    /* fixed control height to align prefix and input; input will use height:100% */
    height: 44px;
}
.input-group .prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    height: 100%;
}
.input-group input[type="tel"] {
    border-radius: 0 6px 6px 0;
    border: 1px solid #ddd;
    padding: 0 12px;
    height: 100%;
    box-sizing: border-box;
}

button {
    background: #007bff;
    color: #fff;
    border: 0;
    padding: .7rem 1rem;
    border-radius: 6px;
    cursor: pointer
}

button:hover {
    background: #006be0
}

.link {
    display: inline-block;
    margin-top: .5rem;
}

.error {
    background: #ffe8e8;
    color: #a40000;
    border: 1px solid #ffb3b3;
    padding: .6rem .7rem;
    border-radius: 6px;
    margin-bottom: .75rem
}

.otp-group {
    display: flex;
    gap: .4rem;
    justify-content: center
}

.otp-group input {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 6px
}

.readonly {
    display: grid;
    gap: .25rem;
    padding: .5rem .6rem;
    background: #f8f9fb;
    border: 1px dashed #ddd;
    border-radius: 6px;
    margin: .5rem 0
}

.terms {
    display: flex;
    gap: .5rem;
    align-items: center
}

.grid div {
    gap: .75rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem
}