/* Main Styles for Teams Invite Page - Matching Original Design */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f3f2f1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.main-wrap {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.13), 0 0.3px 0.9px rgba(0, 0, 0, 0.11);
    padding: 40px 32px;
    text-align: center;
}

.blok-wrap {
    margin-bottom: 0;
}

.blok-wrap img {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.title {
    font-size: 20px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 24px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Buttons */
.join-app,
.join-web {
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    transition: background-color 0.167s ease, border-color 0.167s ease;
    margin-bottom: 8px;
    display: block;
    text-align: center;
    line-height: 20px;
    min-height: 32px;
}

.join-app {
    background: #6264a7;
    color: white;
}

.join-app:hover {
    background: #515296;
}

.join-app:active {
    background: #464775;
}

.join-web {
    background: white;
    color: #323130;
    border: 1px solid #c8c6c4;
}

.join-web:hover {
    background: #faf9f8;
    border-color: #a19f9d;
}

.join-web:active {
    background: #f3f2f1;
}

.mt30 {
    margin-top: 24px;
}

/* Bottom Section */
.blok-bottom-wrap {
    padding-top: 24px;
    border-top: 1px solid #edebe9;
    text-align: center;
    margin-top: 24px;
}

.blok-bottom-wrap img {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.blok-bottom-wrap p {
    font-size: 12px;
    color: #605e5c;
    margin-bottom: 4px;
    line-height: 16px;
}

.blok-bottom-link {
    color: #6264a7;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    line-height: 16px;
}

.blok-bottom-link:hover {
    color: #515296;
    text-decoration: underline;
}

/* Footer */
footer {
    background: transparent;
    padding: 16px 20px;
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.aflex {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aflex img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.aflex p {
    color: #323130;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

footer a {
    color: #605e5c;
    text-decoration: none;
    padding: 0 8px;
    font-size: 12px;
    line-height: 16px;
}

footer a:hover {
    color: #323130;
    text-decoration: underline;
}

/* Error Popups */
.pop-up {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 400px;
    text-align: center;
}

.pop-up img {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.pop-up p {
    color: #323130;
    font-size: 14px;
    line-height: 1.5;
}

.pop-up span {
    display: block;
    margin-bottom: 8px;
}

/* Loading Indicator */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 242, 241, 0.95);
    backdrop-filter: blur(4px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading.show {
    display: flex;
}

.loading img {
    width: 64px;
    height: 64px;
    animation: heartbeat 1.2s ease-in-out infinite;
    display: block;
    margin-bottom: 16px;
}

.loading-message {
    color: #323130;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    display: none;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-8px);
    }
    50% {
        transform: scale(1) translateY(0);
    }
    75% {
        transform: scale(1.05) translateY(-4px);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .main-wrap {
        padding: 32px 24px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .title {
        font-size: 18px;
    }

    .join-app,
    .join-web {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-wrap {
        flex-direction: column;
        gap: 8px;
    }

    footer a {
        display: block;
        padding: 4px 0;
    }
}

/* Utility Classes */
.jflex {
    display: flex;
    align-items: center;
    justify-content: center;
}
