#registerDialog {
    font-family: var(--mainFont);
    border-style: none;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    margin: auto;
    margin-top: 20px;
    max-width: 600px;
    padding: 0px;
    overflow:auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    @media (max-width: 800px) {
            margin: 16px;
        }
}

#registerDialog:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

#registerTopSection {
    position: relative;
    width: 100%;
    height: 290px;
    padding: 0px;
    margin: 0px;
    background-color: rgb(34, 34, 34);
    color: white;
    display: flex;

@media (max-width: 800px) {
        height: 180px;
    }
}

#registerImage {
        width: 100%;
        object-fit: cover;
    object-position: 0px -100px;

    @media (max-width: 800px) {
            object-position: 0px -60px;
        }
}

.register-title {
    font-size: 2.5rem;
    font-weight: 500;
    padding: 24px;
    position: absolute;
    color: rgb(255, 255, 255);
/*     margin-bottom: 20px; */
    bottom: 0px;

}

#registerBottomSection {
    width: 100%;
    height: 320px;
    padding: 0px;
    margin: 0px;
    width: 100%;
    display: flex;
    flex-direction: column;

     @media (max-width: 800px) {
                    height: 360px;
                }
}

#apple-btn-wrapper {
    position: relative;
    height: 40px;
    width: 300px;
    margin: 16px auto 16px auto;
    border-radius: 6px;
}

#appleid-signin {
    height: 40px;
    width: 100%;
    margin: 0;
    cursor: pointer;
}

.btn-spinner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 6px;
    z-index: 10;
}

@keyframes sign-in-spin {
    to { transform: rotate(360deg); }
}

.sign-in-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: sign-in-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.sign-in-spinner--white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

.sign-in-spinner--dark {
    border: 2px solid rgba(60, 64, 67, 0.22);
    border-top-color: #3c4043;
}

#google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    width: 300px;
    padding: 0 16px;
    margin: 0 auto 0 auto;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

.register-sign-in-description {
    padding: 24px;
    margin: 0px 0px 20px 0px;
}

.register-sign-in-disclaimer {
    margin: auto;
    padding: 30px;
    color: rgb(93, 93, 93) ;
    margin-bottom: 0px;
}

.register-sign-in-disclaimer a {
    color: rgb(50, 50, 50);
    text-decoration: none;
    font-weight: 500;
}

.register-sign-in-disclaimer a:hover {
    color: #000;
}

/* ── Error toast ─────────────────────────────────────────── */
#error-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #1e1e1e;
    border-left: 4px solid #ea4335;
    color: #f5f5f5;
    font-family: var(--mainFont), sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 14px 16px 14px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.40);
    min-width: 280px;
    max-width: 480px;
    animation: toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#error-toast.error-toast-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
}

.error-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ea4335;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

#error-toast-message {
    flex: 1;
    line-height: 1.4;
}

#error-toast-close {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: color 0.15s ease;
}

#error-toast-close:hover {
    color: #f5f5f5;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
