.collab-sbody {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(5vh, 10vh, 15vh) clamp(20px, 5vw, 50px);
    width: 100%;
    min-height: 100vh;
    overflow-y: hidden;
    gap: 5px;
    box-sizing: border-box;

    p {
        color: gray;
        font-size: clamp(14px, 2.5vw, 16px);
        line-height: 1.6;
        max-width: 600px;
        text-align: center;
        opacity: 0.8;
        font-weight: 400;
        letter-spacing: 0.3px;
    }
}

.cs-heading {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 90vw;
    animation: fadeInUp 0.8s ease-out;
    z-index: 2;

    /* Enhanced image styling */
    img {

        filter: drop-shadow(0 8px 25px rgba(var(--bg-color1), 0.3));
        border-radius: 50%;
        padding: 8px;
        background: linear-gradient(135deg,
                rgba(var(--bg-color1), 0.1),
                rgba(var(--bg-color1), 0.05));
        -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
        border: 1px solid rgba(var(--bg-color1), 0.15);
        transition: all 0.3s ease;
        animation: float 3s ease-in-out infinite;
    }

    img:hover {
        transform: scale(1.05) rotate(3deg);
        filter: drop-shadow(0 12px 35px rgba(var(--bg-color1), 0.4));
    }

    h1,
    h2,
    h3 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: clamp(8px, 2vw, 18px);
        line-height: 1.2;
        font-weight: 700;
        background: linear-gradient(135deg,
                rgba(var(--bg-color1), 0.95),
                rgba(var(--bg-color1), 0.7));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
        text-shadow: 0 0 40px rgba(var(--bg-color1), 0.2);
    }

    h1::after,
    h2::after,
    h3::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg,
                transparent,
                rgba(var(--bg-color1), 0.8),
                rgba(var(--bg-color1), 0.4),
                transparent);
        border-radius: 2px;
        animation: slideIn 1s ease-out 0.3s both, glow 2s ease-in-out infinite alternate;
    }

    p {
        color: gray;
        font-size: clamp(15px, 2.5vw, 17px);
        line-height: 1.3;
        margin: 0;
        opacity: 0.85;
        animation: fadeIn 1s ease-out 0.5s both;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
}

.collab-button {
    position: relative;
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 1.5vw, 20px);
    cursor: pointer;
    border-radius: clamp(12px, 2vw, 16px);
    font-size: clamp(15px, 2.5vw, 17px);
    font-weight: 600;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.8px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    animation: slideInUp 0.6s ease-out;
    text-transform: uppercase;
    font-weight: 700;
}

.collab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.6s ease;
}

.collab-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg,
            rgba(var(--bg-color1), 0.3),
            rgba(var(--bg-color1), 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collab-button:hover::before {
    left: 100%;
}

.collab-button:hover::after {
    opacity: 1;
}

.collab-button:hover,
.collab-button:focus {
    transform: translateY(-3px) scale(1.03);
    background-clip: none;
    outline: none;
    box-shadow: 0 15px 40px rgba(var(--bg-color1), 0.2);
}

.collab-button:active {
    transform: translateY(-1px) scale(0.98);
}

.collab-sbutton {
    position: absolute;
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 1.5vw, 18px);
    cursor: pointer;
    border-radius: clamp(10px, 1.5vw, 14px);
    font-size: clamp(10px, 1.5vw, 12px);
    font-weight: 600;
    width: auto;
    min-width: clamp(90px, 15vw, 130px);
    top: clamp(20px, 3vh, 30px);
    right: clamp(20px, 3vw, 30px);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.4px;
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    animation: fadeInDown 0.6s ease-out 0.2s both;
    z-index: 10;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(var(--bg-color1), 0.15);
}

.collab-sbutton::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(var(--bg-color1), 0.2),
            rgba(var(--bg-color1), 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collab-sbutton:hover::before {
    opacity: 1;
}

.collab-sbutton:hover,
.collab-sbutton:focus {
    transform: translateY(-2px) scale(1.08);
    background-clip: none;
    outline: none;
    box-shadow: 0 8px 25px rgba(var(--bg-color1), 0.25);
}

.collab-sbutton:active {
    transform: translateY(0) scale(0.95);
}

.cs-signup-cont {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 2.5vw, 30px);
    border-radius: clamp(24px, 4vw, 30px);
    gap: clamp(12px, 2vw, 18px);
    width: 100%;
    max-width: clamp(350px, 90vw, 480px);
    height: auto;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(25px);
            backdrop-filter: blur(25px);
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.cs-signup-cont::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.cs-signup-cont::after {
    content: '';
    position: absolute;
    inset: -50px;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.cs-signup-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: clamp(4px, 1.5vw, 6px);
    animation: fadeInUp 0.6s ease-out 0.5s both;

    label {
        color: gray;
        font-size: clamp(14px, 2.2vw, 16px);
        font-weight: 600;
        letter-spacing: 0.4px;
        margin-bottom: 4px;
        opacity: 0.9;
        text-transform: uppercase;
        font-size: clamp(12px, 2vw, 14px);
    }

    input {
        width: 100%;
        font-size: clamp(16px, 3vw, 18px);
        padding: clamp(5px, 1.8vw, 10px);
        background: rgba(var(--bg-color1), 0.03);
        border: 2px solid rgba(128, 128, 128, 0.25);
        border-radius: clamp(10px, 1.5vw, 14px);
        box-sizing: border-box;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        font-weight: 500;
        letter-spacing: 0.3px;
        -webkit-backdrop-filter: blur(10px);
                backdrop-filter: blur(10px);
        position: relative;
    }

    input::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, transparent, rgba(var(--bg-color1), 0.02));
        pointer-events: none;
    }

    input:focus {
        outline: none;
        border-color: rgba(var(--bg-color1), 0.7);
        box-shadow:
            0 0 0 4px rgba(var(--bg-color1), 0.15),
            0 8px 25px rgba(var(--bg-color1), 0.1);
        background: rgba(var(--bg-color1), 0.05);
        transform: translateY(-2px) scale(1.01);
    }

    input::placeholder {
        font-size: clamp(14px, 2.5vw, 16px);
        opacity: 0.5;
        font-weight: 400;
        letter-spacing: 0.2px;
        font-style: italic;
    }

    input:hover {
        border-color: rgba(var(--bg-color1), 0.5);
        background: rgba(var(--bg-color1), 0.04);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(var(--bg-color1), 0.08);
    }
}

/* Enhanced Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(var(--bg-color1), 0.3);
    }

    to {
        box-shadow: 0 0 30px rgba(var(--bg-color1), 0.6);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dark Mode */
html.dark {

    .collab-button,
    .collab-sbutton {
        background: linear-gradient(145deg,
                rgba(var(--bg-color1), 0.2),
                rgba(var(--bg-color1), 0.1));
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset 0 1px 2px rgba(255, 255, 255, 0.1),
            inset 0 -2px 6px rgba(0, 0, 0, 0.2);
        color: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(var(--bg-color1), 0.18);
    }

    .cs-signup-box input {
        color: rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.03);
    }

    .cs-signup-box input:focus {
        border-color: rgba(var(--bg-color1), 0.7);
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.05);
    }

    .cs-signup-box input:hover {
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.04);
    }

    .cs-signup-box label {
        color: rgba(255, 255, 255, 0.75);
    }

    .cs-signup-cont {}
}

/* Light Mode */
html.light {

    .collab-button,
    .collab-sbutton {
        background: linear-gradient(145deg,
                rgba(var(--bg-color1), 0.15),
                rgba(var(--bg-color1), 0.08));
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.08),
            inset 0 2px 4px rgba(255, 255, 255, 0.8);
        color: #0E1111;
        border: 2px solid rgba(var(--bg-color1), 0.18);
    }

    .cs-signup-box input {
        color: #0E1111;
        border-color: rgba(0, 0, 0, 0.18);
        background: rgba(255, 255, 255, 0.8);
    }

    .cs-signup-box input:focus {
        border-color: rgba(var(--bg-color1), 0.7);
        background: rgba(255, 255, 255, 0.95);
    }

    .cs-signup-box input:hover {
        border-color: rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.85);
    }

    .cs-signup-cont {}
}

/* Mobile Optimizations */
@media screen and (max-width: 600px) {
    .collab-sbody {
        padding: 5vh 15px;
        gap: 30px;
    }

    .cs-signup-cont {
        width: 98vw;
        max-width: none;
        margin: 0 15px;
        padding: 25px;
    }

    .google-btn {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .collab-sbutton {
        position: fixed;
        z-index: 1000;
    }

    .collab-button {
        max-width: 98vw;
    }
}

/* Tablet Optimizations */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .collab-sbody {
        padding: 8vh 40px;
    }

    .cs-signup-cont {
        width: 70vw;
        max-width: 520px;
    }
}

/* Large Screen Optimizations */
@media screen and (min-width: 1025px) {
    .collab-sbody {
        padding: 10vh 50px;
    }

    .cs-signup-cont {
        width: 480px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .collab-button,
    .google-btn,
    .collab-sbutton {
        padding: 16px 26px;
        font-size: 16px;
    }

    .cs-signup-box input {
        font-size: 16px;
        padding: 16px;
    }
}

/* High DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .collab-button,
    .google-btn,
    .collab-sbutton {
        border-width: 1px;
    }
}

/* Landscape Mobile Optimizations */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .collab-sbody {
        padding: 2vh 20px;
        gap: 25px;
    }

    .cs-signup-cont {
        padding: 20px;
        gap: 18px;
    }
}

/* Print Styles */
@media print {
    .collab-sbutton {
        display: none;
    }

    .collab-sbody {
        padding: 20px;
        min-height: auto;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .collab-button:hover,
    .google-btn:hover,
    .collab-sbutton:hover {
        transform: none;
    }
}

/* Focus Visible for Keyboard Navigation */
.collab-button:focus-visible,
.google-btn:focus-visible,
.collab-sbutton:focus-visible {
    outline: 3px solid rgba(var(--bg-color1), 0.6);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(var(--bg-color1), 0.15);
}

/* Container Queries (Modern Browser Support) */
@container (max-width: 400px) {
    .cs-signup-cont {
        padding: 20px;
        gap: 18px;
    }
}
.google-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: clamp(15px, 2.5vw, 17px);
    font-weight: 600;
    width: 100%;
    max-width: 500px;
    gap: clamp(10px, 2vw, 14px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.4px;
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.6s ease-out 0.1s both;
    overflow: hidden;
}

.google-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.google-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.google-text {
    white-space: nowrap;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top: 2px solid #4285F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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