* { 
    box-sizing: border-box; 
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
    padding: 24px;
}

.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave-container svg {
    width: 100%;
    height: 100%;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: #fdfdfd;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.login-card-body {
    padding: 40px 32px 28px;
    text-align: center;
}

.login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon svg { 
    width: 28px; 
    height: 28px; 
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.login-card .subtitle {
    margin: 0 0 24px;
    font-size: 13.5px;
    color: #9a9a9a;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.btn-discord:hover { 
    background: #4752c4; 
}

.btn-discord svg { 
    width: 18px; 
    height: 18px; 
    flex-shrink: 0; 
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #b7b7b7;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ececec;
}

.terms {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #a8a8a8;
}

.terms a { 
    color: #8a8a8a; 
    text-decoration: underline; 
}

.login-card-footer {
    border-top: 1px solid #ececec;
    background: #f8f8f8;
    padding: 14px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #eeeeee;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.back-link:hover { 
    background: #e2e2e2; 
}

@media (max-width: 380px) {
    .login-card-body { 
        padding: 24px 16px 20px; 
    }
    .login-card h1 { 
        font-size: 1.5rem; 
    }
}