/* Shared clean form layout (User Registration, Employee/Vendor registration requests):
   card + grid of label | input | required mark. */
.reg-card {
    box-sizing: border-box;
    max-width: 560px;
    margin: 2rem auto 3rem;
    padding: 1.75rem 2rem 1.5rem;
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    font-family: Arial, Helvetica, sans-serif;
}

.reg-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: #1f2933;
}

.reg-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 1rem;
    align-items: center;
    column-gap: .75rem;
    row-gap: .85rem;
}

.reg-label {
    font-size: 1rem;
    color: #1f2933;
    text-align: right;
}

.reg-field {
    position: relative;
}

.reg-input {
    box-sizing: border-box;
    width: 100%;
    height: 2.4rem;
    padding: .45rem .7rem;
    border: 1px solid #9aa5b1;
    border-radius: 5px;
    font: 1rem Arial, Helvetica, sans-serif;
    background: #fff;
}

.reg-input:focus {
    outline: none;
    border-color: #087699;
    box-shadow: 0 0 0 3px rgba(8, 118, 153, .18);
}

/* show/hide eye sits inside the password box, so all boxes keep the same width */
.reg-field-password .reg-input {
    padding-right: 2.4rem;
}

.reg-field-password .login-password-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    margin: 0;
    transform: translateY(-50%);
}

.reg-req,
.reg-req span {
    color: #c62828;
    font-weight: bold;
}

.reg-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .25rem;
}

.reg-button {
    height: 2.4rem;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 5px;
    background: #252525;
    color: #fff;
    font: bold 1rem Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.reg-button:hover {
    background: #087699;
}

.reg-home {
    color: #087699;
    font-weight: bold;
}

.reg-summary {
    margin-top: 1rem;
    color: #c62828;
}

.reg-message {
    display: block;
    margin-top: .75rem;
    font-weight: bold;
}

@media (max-width: 640px) {
    .reg-card {
        margin: 1rem;
        padding: 1.25rem 1rem;
    }

    .reg-grid {
        grid-template-columns: minmax(0, 1fr) 1rem;
        row-gap: .35rem;
    }

    .reg-label {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: .4rem;
    }
}

/* wider card for forms with a message box */
.reg-card-wide {
    max-width: 680px;
}

.reg-textarea {
    height: auto;
    min-height: 8rem;
    resize: vertical;
}

.reg-label-top {
    align-self: start;
    padding-top: .5rem;
}
