@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
@import url('/assets/silk-background.css');

:root {
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
    
    --bg-dark: #07090e;
    --accent-discord: #5865F2;
    --accent-green: #00d69a;
    --accent-cyan: #00f2fe;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

/* Main Layout - Centered login button */
.login-page {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    width: 100vw;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 420px;
}

/* Specular Login Button styling */
.login-specular-btn {
    --sb-radius: 24px;
    --sb-tint: #5865F2;
    --sb-tint-opacity: 0.18;
    --sb-blur: 20px;
    --sb-text-color: #ffffff;
    
    width: 100%;
    padding: 1.2rem 2rem;
    text-decoration: none;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 
        0 12px 32px rgba(88, 101, 242, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-specular-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(88, 101, 242, 0.28);
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 
        0 20px 45px rgba(88, 101, 242, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.login-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    letter-spacing: -0.01em;
}

.discord-icon {
    width: 26px;
    height: 26px;
    fill: #5865F2;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.6));
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.login-specular-btn:hover .discord-icon {
    transform: scale(1.1);
    fill: #7289da;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    margin-left: auto;
    stroke: rgba(255, 255, 255, 0.7);
    transition: transform 0.25s ease, stroke 0.25s ease;
    flex-shrink: 0;
}

.login-specular-btn:hover .btn-arrow {
    transform: translateX(5px);
    stroke: #ffffff;
}
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(0, 214, 154, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-green);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.5;
    max-width: 380px;
}

/* Glassmorphism Login Card */
.login-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(88, 101, 242, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-card:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(88, 101, 242, 0.15);
}

.card-header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.card-header h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Community Server Highlight Badge */
.server-badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.75rem;
}

.server-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.server-info {
    display: flex;
    flex-direction: column;
}

.server-info label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.server-info span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Discord Button */
.discord-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 
        0 8px 25px rgba(88, 101, 242, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

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

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 14px 35px rgba(88, 101, 242, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #6975f3, #505cd4);
}

.discord-button:hover::after {
    left: 100%;
}

.discord-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.discord-button:hover .btn-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Security Footer */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.775rem;
    text-align: center;
}

.security-note svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent-green);
    flex-shrink: 0;
}

/* Footer links */
.login-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.775rem;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--accent-green);
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .brand-name {
        font-size: 1.85rem;
    }
}