/* =========================
   REGISTER PAGE
   ========================= */

.register-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 55px 20px 80px;
}

.register-card {
    width: 100%;
    max-width: 850px;
}

.register-heading {
    text-align: center;
    margin-bottom: 38px;
}

.register-heading .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
}

.register-heading h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.register-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: #667085;
    font-size: 17px;
    line-height: 1.6;
}


/* Role selection */

.role-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
    text-align: center;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.role-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.role-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card-content {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 25px;
    background: #ffffff;
    border: 2px solid #e4e7ec;
    border-radius: 18px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.role-card:hover .role-card-content {
    border-color: #b8c7f8;
    transform: translateY(-2px);
}

.role-card input:checked + .role-card-content {
    border-color: #2864e8;
    box-shadow: 0 0 0 4px rgba(40, 100, 232, 0.10);
}

.role-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #eef4ff;
    font-size: 23px;
}

.role-card-title {
    margin-bottom: 9px;
    font-size: 20px;
    font-weight: 700;
    color: #172033;
}

.role-card-description {
    flex: 1;
    color: #667085;
    font-size: 15px;
    line-height: 1.55;
}

.role-card-action {
    margin-top: 20px;
    color: #2864e8;
    font-size: 14px;
    font-weight: 700;
}


/* Form */

.register-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.register-fields .form-field:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.form-field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #2864e8;
    box-shadow: 0 0 0 3px rgba(40, 100, 232, 0.10);
}

.form-field input::placeholder {
    color: #98a2b3;
}

.register-submit {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
}

.register-message {
    min-height: 24px;
    margin: 16px 0 0;
    text-align: center;
}

.register-login {
    margin: 20px 0 0;
    text-align: center;
    color: #667085;
}

.register-login a {
    font-weight: 600;
}


/* Mobile */

@media (max-width: 700px) {

    .register-page {
        padding: 35px 16px 55px;
    }

    .register-heading h1 {
        font-size: 34px;
    }

    .register-heading p {
        font-size: 15px;
    }

    .role-cards {
        grid-template-columns: 1fr;
    }

    .role-card-content {
        min-height: auto;
    }

    .register-fields {
        grid-template-columns: 1fr;
    }

    .register-fields .form-field:last-child {
        grid-column: auto;
        max-width: none;
    }
}
.register-message {
    margin: 20px 0 0;
    padding: 16px 18px;

    background: #eef5ff;
    border: 1px solid #bcd2ff;
    border-radius: 14px;

    color: #1749a8;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.register-message:empty {
    display: none;
}
/* =========================
   GOOGLE REGISTER BUTTON
   ========================= */

.google-register-button {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 0 20px;

    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;

    color: #344054;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.google-register-button:hover {
    border-color: #b8c7f8;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}

.google-register-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.google-register-button .google-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;

    color: #4285f4;
}

.google-register-button > span:last-child {
    line-height: 1;
}