:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --primary: #0088cc;
    --primary-hover: #006699;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 16px -8px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --card: #1e293b;
        --text: #f1f5f9;
        --text-secondary: #94a3b8;
        --border: #334155;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo {
    font-size: 28px;
}

.brand h1 {
    font-weight: 700;
    font-size: 26px;
    margin: 0;
    background: linear-gradient(135deg, #0088cc, #005588);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 24px 0 32px;
    font-weight: 400;
}

.widget-container {
    margin: 24px 0;
}

.info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 136, 204, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    margin-top: 24px;
}

.info svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}

.login-footer {
    text-align: center;
    margin-top: auto;
    padding: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.tgme_login_button {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3) !important;
    border-radius: 12px !important;
}

.tgme_login_button_svg {
    fill: white !important;
}

.tgme_login_button_text {
    font-weight: 600 !important;
    font-size: 17px !important;
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }

    .brand h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }
}