*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, "SF Pro Display", "Inter", sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(124,58,237,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.card {
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.logo-text {
    margin-top: 0.625rem;
    font-size: 13px;
    letter-spacing: 2px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.5rem;
    text-align: center;
}

.subtext {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
    text-align: center;
    line-height: 1.5;
}

.form-group {
    margin-top: 0;
}

.form-group + .form-group {
    margin-top: 1rem;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #4b5563;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(124,58,237,0.6);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.password-extras {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.forgot-link {
    font-size: 12px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #8b5cf6;
}

.signin-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.signin-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.signin-btn:active {
    transform: translateY(0);
    filter: brightness(1.0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 0.75rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.divider-text {
    font-size: 0.8rem;
    color: #4b5563;
    font-weight: 500;
}

.invite-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

footer {
    display: none;
}

@media (max-width: 480px) {
    .card {
        padding: 2rem 1.5rem;
        border-radius: 0.875rem;
    }

    .heading {
        font-size: 1.5rem;
    }

    .page-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .card {
        padding: 1.5rem 1.25rem;
    }

    .heading {
        font-size: 1.35rem;
    }
}