/* Form header above forms */
.form-header{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 6px 10px 6px;
}

.form-back{
    border: 1px solid #e5e5e5;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #111;
    line-height: 1;
}

.form-title{
    font-size: 16px;
    font-weight: 650;
    color: #111;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    touch-action: manipulation;
    overflow: hidden;
    height: 100%;
}

body{
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 0;
    padding: 0 15px;
    overflow: hidden !important;

    /* same behavior as login */
    position: fixed;
    inset: 0;

    /* modern viewport units (fixes “pushed down” on mobile) */
    height: 100dvh;
    min-height: 100dvh;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
}

/* fallback for older browsers */
@supports not (height: 100dvh) {
    body{
        height: 100vh;
        min-height: 100vh;
    }
}


.logo-container {
    margin-bottom: 8px;
    text-align: center;
    margin-top: 0;
}

.logo {
    max-width: 95px;
    height: auto;
}

.signup-form {
    width: 100%;
    max-width: 380px;
    overflow: hidden;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    color: #000;
}

.form-group {
    margin-bottom: 8px;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #000;
}

.password-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    padding: 6px;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-primary:hover {
    background: #c40811;
}

.divider {
    text-align: center;
    margin: 16px 0;
    color: #666;
    font-size: 13px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 2;
}

.login-link {
    text-align: center;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.terms-section {
    margin: 12px 0 16px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-section input[type="checkbox"] {
    margin-top: 0;
    cursor: pointer;
    accent-color: #e50914;
    flex-shrink: 0;
}

.terms-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.terms-text a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Segmented Role Selector Styles */
.permanent-info-banner {
    width: 100%;
    max-width: 380px;
    margin-bottom: 16px;
}


.page-title{
    font-size: 22px;
    font-weight: 650;
    text-align: center;
    margin-bottom: 6px;
    color: #111;
}

.page-subtitle{
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

/* Clean role cards */
.role-cards{
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.role-card{
    width: 100%;
    padding: 16px 14px;
    background: #fff;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.role-card:focus{
    outline: none;
}

.role-card__row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.role-card__title{
    font-size: 15px;
    font-weight: 650;
    color: #111;
    margin-bottom: 4px;
}

.role-card__desc{
    font-size: 13px;
    color: #666;
    line-height: 1.35;
}

.role-card__chev{
    font-size: 22px;
    color: #999;
    line-height: 1;
}

/* grey line separator */
.role-divider{
    height: 1px;
    background: #eee;
}

/* Active state = very subtle (professional) */
.role-card.active{
    background: #fafafa;
}
.role-card.active .role-card__title{
    color: #111;
}

.forms-container {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.forms-container.active {
    opacity: 1;
    pointer-events: auto;
}

.signup-form-inner {
    width: 100%;
}

.alert {
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    font-size: 13px;
}

.alert ul {
    list-style: none;
}

.page-scale{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
    transform-origin: top center;
}

/* Small height devices — scale content down */
@media (max-height: 720px) {
    .page-scale { transform: scale(0.92); }
}

@media (max-height: 680px) {
    .page-scale { transform: scale(0.88); }
}

@media (max-height: 620px) {
    .page-scale { transform: scale(0.82); }
}

.btn-google {
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background: #f9f9f9;
}

.role-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hint blocks (you had inline styles; now standardized) */
.hint {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 6px;
}