* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.login-page {
    flex-direction: column;
    justify-content: center;
    padding: 24px 16px 20px;
    gap: 0;
}

.login-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.login-box {
    background: #1e293b;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #334155;
    margin: 20px;
}
.logo { text-align: center; margin-bottom: 30px; }
.logo h1 { color: #10b981; font-size: 28px; }
.logo p { color: #94a3b8; font-size: 14px; }
.form-group { margin-bottom: 20px; }
label { display: block; color: #cbd5e1; margin-bottom: 8px; font-size: 14px; }
input {
    width: 100%;
    padding: 12px 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 16px;
}
input:focus { outline: none; border-color: #10b981; }
button {
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
button:hover { background: #059669; }
.error { color: #ef4444; text-align: center; margin-bottom: 15px; font-size: 14px; }
.back-link { text-align: center; margin-top: 20px; }
.back-link a { color: #10b981; text-decoration: none; font-size: 14px; }

.login-app-download {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}
.login-app-download-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.login-app-download-head .fa-android { color: #3ddc84; font-size: 18px; }
.login-app-download-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-app-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.login-app-dl-btn small {
    opacity: 0.75;
    font-size: 11px;
    font-weight: 400;
}
.login-app-dl-btn:hover {
    border-color: #10b981;
    color: #e2e8f0;
    background: #1e293b;
}
.login-app-dl-btn--primary {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}
.login-app-dl-btn--primary:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}
.login-app-download-pending {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.login-app-download-pending code {
    font-size: 11px;
    color: #cbd5e1;
}
.login-app-download-hint {
    margin-top: 12px;
    text-align: center;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}
.login-app-download-hint .fa-link { margin-right: 4px; }
.login-app-server-url {
    display: block;
    margin-top: 4px;
    padding: 6px 8px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 10px;
    word-break: break-all;
    user-select: all;
}
